/* iq-style.css - स्टाइलिश और आधुनिक IQ कैलकुलेटर */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d2ff;
    --primary-dark: #0077b6;
    --secondary: #7c2ae8;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #00ff88;
    --error: #ff4757;
    --warning: #ffa502;
    --text-light: #f0f0f0;
    --text-dim: #b0b0b0;
}

body {
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
}

/* स्क्रॉलबार */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* एप्लिकेशन कंटेनर */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ग्लास हेडर */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.stat-badge {
    background: rgba(0, 210, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

/* मुख्य सामग्री */
.main-content {
    flex: 1;
}

/* स्क्रीन */
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* ग्लास कार्ड */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

/* स्टार्ट कार्ड */
.start-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.start-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.start-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.start-card p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.age-selector {
    margin-bottom: 20px;
    text-align: left;
}

.age-selector label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.glass-select, .glass-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-select:focus, .glass-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.custom-age-input {
    margin-bottom: 30px;
    text-align: left;
}

.custom-age-input label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
}

/* बटन स्टाइल */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.glow-btn {
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 210, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 210, 255, 0.6); }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 40px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 12px 24px;
    border-radius: 40px;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-next {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* टेस्ट हेडर */
.test-header {
    margin-bottom: 25px;
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 20px;
}

.test-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* प्रश्न कार्ड */
.question-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.question-text {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.option.selected {
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.option-letter {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.option-text {
    flex: 1;
}

.test-controls {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

/* रिजल्ट स्क्रीन */
.result-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.result-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.iq-score-container {
    margin: 30px 0;
    position: relative;
}

.iq-score {
    font-size: 5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.iq-label {
    font-size: 1rem;
    color: var(--text-dim);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.iq-interpretation {
    padding: 20px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 15px;
    margin: 20px 0;
    font-size: 1rem;
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* फुटर */
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.glass-footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* रिस्पॉन्सिव */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }
    
    .glass-card {
        padding: 25px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .iq-score {
        font-size: 3.5rem;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .glass-header {
        flex-direction: column;
        text-align: center;
    }
    
    .option {
        padding: 12px 15px;
    }
}

/* इंस्टॉल बटन */
.install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
}

/* एनिमेशन */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.wrong-answer {
    animation: shake 0.3s ease;
    border-color: var(--error) !important;
}

.correct-answer {
    border-color: var(--success) !important;
    background: rgba(0, 255, 136, 0.1) !important;
}

/* इन्फो टेक्स्ट */
.info-text {
    margin-top: 25px;
    color: var(--text-dim);
    font-size: 0.85rem;
}