/* Prediction Page Styles - Following Brand Guidelines */

/* Import CSS variables */
@import url("../variables.a45104a2cb93.css");

.prediction-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.current-price-display {
    background-color: var(--bg-light);
    border-left: 4px solid var(--gold-primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
}

.direction-option {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-base);
    background: var(--bg-white);
}

.direction-option:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--gold-lighter);
}

.direction-option input[type="radio"] {
    display: none;
}

.direction-option input[type="radio"]:checked + label {
    border-color: var(--gold-primary);
    background-color: var(--gold-light);
}

.direction-option.up {
    color: var(--success-color);
}

.direction-option.down {
    color: var(--danger-color);
}

.direction-option.stable {
    color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Alert Info Box */
.alert-info {
    background-color: var(--gold-lighter);
    border-color: var(--gold-light);
    color: var(--text-dark);
}

.alert-info .alert-heading {
    color: var(--gold-primary);
}

/* Button Styling */
.btn-gold-gradient {
    background: var(--gradient-gold);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-gold-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--text-dark);
}

.btn-gold-gradient:active,
.btn-gold-gradient:focus {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-gold-gradient:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Validation States */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: var(--font-sm);
    margin-top: 0.25rem;
}

/* Loading States */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .prediction-form-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .direction-option {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .direction-option span {
        font-size: var(--font-sm);
    }
    
    .current-price-display h2 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .form-label {
        font-size: var(--font-sm);
    }
}

@media (max-width: 575px) {
    .direction-option {
        padding: 0.75rem;
    }
    
    .direction-option i {
        font-size: 1.5rem;
    }
    
    .direction-option span {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Keep prediction summary cards side by side */
    .prediction-summary-container .row.g-2 > .col-4 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
    
    /* Only affect prediction form buttons */
    #predictionFormContainer .d-flex.justify-content-between,
    #inlinePredictionForm .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    #predictionFormContainer .d-flex.justify-content-between > *,
    #inlinePredictionForm .d-flex.justify-content-between > * {
        width: 100%;
    }
}

/* Accessibility */
.direction-option:focus-within {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Animation for form submission */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.btn-gold-gradient:not(:disabled):active {
    animation: pulse-gold 0.3s;
}

/* Improved form text helper */
.form-text {
    color: var(--text-muted);
    font-size: var(--font-sm);
    margin-top: 0.25rem;
}

/* Price change indicator */
.price-change-text {
    font-weight: 600;
    transition: var(--transition-fast);
}

.price-change-text.positive {
    color: var(--success-color);
}

.price-change-text.negative {
    color: var(--danger-color);
}