/* assets/css/analyzer-style.css */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec489a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border: #e5e7eb;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s ease;
}

.bfa-analyzer-container {
    max-width: 900px;
    margin: 2rem auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    padding: 3px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bfa-form-wrapper {
    background: var(--bg-white);
    border-radius: calc(var(--radius-xl) - 3px);
    padding: 2.5rem;
}

.bfa-form-wrapper h3 {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 0.5rem;
}

.bfa-form-group {
    margin-bottom: 1.5rem;
}

.bfa-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bfa-form-group .required {
    color: var(--danger);
}

.bfa-form-group input[type="date"],
.bfa-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.bfa-form-group input[type="date"]:focus,
.bfa-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.bfa-radio-group {
    display: flex;
    gap: 2rem;
    padding: 0.5rem 0;
}

.bfa-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.bfa-radio-group input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.bfa-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.bfa-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.bfa-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#bfa-loading {
    text-align: center;
    padding: 3rem;
}

.bfa-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#bfa-result {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bfa-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.bfa-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.bfa-section h4 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bfa-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.bfa-tag {
    padding: 0.25rem 0.875rem;
    background: var(--bg-light);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.bfa-lucky-color {
    display: inline-block;
    padding: 0.375rem 1rem;
    margin: 0.25rem;
    border-radius: 9999px;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bfa-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.bfa-stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.bfa-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.bfa-stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.bfa-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 9999px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.bfa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 9999px;
    transition: width 1s ease-out;
}

@media (max-width: 768px) {
    .bfa-form-wrapper {
        padding: 1.5rem;
    }
    
    .bfa-form-wrapper h3 {
        font-size: 1.5rem;
    }
    
    .bfa-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .bfa-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1f2937;
        --bg-white: #111827;
        --text-dark: #f9fafb;
        --text-gray: #9ca3af;
        --border: #374151;
    }
}