/**
 * Interactive Features Styling for Alkaline Earth Metals Page
 * Comprehensive styles for charts, simulations, and interactive elements
 */

/* Interactive Charts Styling */
#interactive-charts {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 78, 59, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.chart-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 78, 59, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #cbd5e1;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.chart-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 78, 59, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.chart-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.chart-container {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.chart-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

#chart-description {
    background: rgba(16, 185, 129, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    color: #cbd5e1;
    font-size: 14px;
}

#element-details {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.element-detail-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.08) 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.element-detail-card h4 {
    color: #10b981;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.element-detail-card p {
    margin: 5px 0;
    color: #cbd5e1;
    font-size: 13px;
}

/* Flame Test Simulator */
#flame-test-simulator {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(127, 29, 29, 0.02) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.simulator-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.flame-container {
    display: flex;
    justify-content: center;
    align-items: end;
    height: 300px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-radius: 10px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.bunsen-burner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flame {
    width: 40px;
    height: 100px;
    background: linear-gradient(to top, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    transition: all 1s ease;
    animation: flameFlicker 1s infinite alternate;
}

@keyframes flameFlicker {
    0% { transform: scaleY(1) scaleX(1); }
    100% { transform: scaleY(1.1) scaleX(0.95); }
}

.burner-base {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-radius: 0 0 10px 10px;
    border: 2px solid #334155;
    position: relative;
}

.burner-base::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #1e293b;
    border-radius: 50%;
    border: 1px solid #0f172a;
}

.element-selector h4 {
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 16px;
}

.element-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.element-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 78, 59, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-align: center;
}

.element-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 78, 59, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.reset-btn, .reset-reaction-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: 1px solid #64748b;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.reset-btn:hover, .reset-reaction-btn:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
}

.flame-info {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #cbd5e1;
    line-height: 1.6;
}

/* Reactivity Simulator */
#reactivity-simulator {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(29, 78, 216, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.reactivity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.reaction-chamber {
    position: relative;
    height: 300px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-radius: 10px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: end;
}

.water-container {
    position: relative;
    width: 80%;
    height: 70%;
    overflow: hidden;
}

.water {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #3b82f6 0%, #60a5fa 100%);
    transition: all 1s ease;
    border-radius: 0 0 10px 10px;
    position: relative;
}

.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
    from {
        bottom: 0;
        opacity: 1;
    }
    to {
        bottom: 100%;
        opacity: 0;
    }
}

.element-dropper {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.metal-sample {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: #9ca3af;
    opacity: 0;
    transition: all 0.3s ease;
}

@keyframes dropMetal {
    0% {
        top: 20px;
        opacity: 1;
    }
    70% {
        top: 200px;
        opacity: 1;
    }
    100% {
        top: 220px;
        opacity: 0.5;
    }
}

.reactivity-controls h4 {
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 16px;
}

.reaction-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.reaction-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-align: center;
}

.reaction-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(29, 78, 216, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.reaction-equation {
    grid-column: 1 / -1;
    background: rgba(15, 23, 42, 0.8);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    color: #cbd5e1;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
}

.reaction-explanation {
    grid-column: 1 / -1;
    background: rgba(59, 130, 246, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #cbd5e1;
    line-height: 1.6;
}

/* Electron Configuration Builder */
#electron-config-builder {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(107, 33, 168, 0.02) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.config-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.element-selector-config {
    text-align: center;
}

.element-selector-config label {
    color: #cbd5e1;
    font-size: 16px;
    margin-right: 15px;
}

#element-select {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #cbd5e1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    min-width: 250px;
}

#element-select:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.orbital-diagram {
    background: rgba(15, 23, 42, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.orbital-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.orbital-label {
    color: #a855f7;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.orbital-boxes {
    display: flex;
    gap: 10px;
}

.electron-box {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(168, 85, 247, 0.1);
    color: #cbd5e1;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.electron-box:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.7);
    transform: scale(1.05);
}

.electron-count {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.electron-config-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.config-notation,
.noble-gas-notation {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #a855f7;
    color: #cbd5e1;
    font-family: 'Courier New', monospace;
}

/* Solubility Calculator */
#solubility-calculator {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(21, 128, 61, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-section {
    background: rgba(15, 23, 42, 0.8);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-size: 14px;
}

#compound-select,
#temperature-input {
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #cbd5e1;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

#compound-select:focus,
#temperature-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.results-section {
    display: flex;
    align-items: center;
}

.result-display {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

#solubility-value h4 {
    color: #22c55e;
    margin-bottom: 15px;
    font-size: 18px;
}

.solubility-number {
    font-size: 32px;
    font-weight: bold;
    color: #10b981;
    text-align: center;
    margin: 15px 0;
}

.trend-indicator {
    text-align: center;
    background: rgba(34, 197, 94, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #22c55e;
    margin: 10px 0;
}

#solubility-explanation {
    color: #cbd5e1;
    line-height: 1.6;
    margin-top: 20px;
    font-size: 14px;
}

.visual-indicator {
    margin-top: 20px;
}

.solubility-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.solubility-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

/* Expandable Content */
.expand-btn {
    background: none;
    border: none;
    color: #10b981;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.expand-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

/* Quiz Elements */
#inline-quiz {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.quiz-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.question-container {
    background: rgba(15, 23, 42, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.question {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.quiz-option {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #cbd5e1;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
}

.quiz-option:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.quiz-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.feedback {
    margin-bottom: 20px;
}

.correct {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 15px;
    border-radius: 8px;
}

.incorrect {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 15px;
    border-radius: 8px;
}

.next-question-btn {
    display: none;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: none;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.next-question-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
    transform: translateY(-2px);
}

.quiz-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.score {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.progress {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.2);
    height: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-complete {
    text-align: center;
    color: #cbd5e1;
}

.result-emoji {
    font-size: 60px;
    margin-bottom: 20px;
}

.quiz-complete h4 {
    color: #fbbf24;
    font-size: 24px;
    margin-bottom: 15px;
}

.final-score {
    font-size: 28px;
    font-weight: bold;
    color: #22c55e;
    margin-bottom: 20px;
}

.restart-quiz-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.restart-quiz-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

/* Tooltips */
.tooltip-term {
    color: #10b981;
    border-bottom: 1px dotted #10b981;
    cursor: help;
    transition: all 0.3s ease;
}

.tooltip-term:hover {
    color: #34d399;
    border-bottom-color: #34d399;
}

.custom-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Interactive Periodic Table Section */
#interactive-periodic-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(67, 56, 202, 0.02) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.periodic-section-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.group-header {
    grid-column: 1 / -1;
    text-align: center;
    color: #6366f1;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.elements-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-element-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(67, 56, 202, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 30px 40px 1fr 50px;
    gap: 10px;
    align-items: center;
    color: #cbd5e1;
}

.mini-element-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(67, 56, 202, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.element-number {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.element-symbol {
    font-size: 18px;
    font-weight: bold;
    color: #6366f1;
    text-align: center;
}

.element-name {
    font-size: 14px;
    color: #cbd5e1;
}

.element-mass {
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
}

.element-info-panel {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.info-content h4 {
    color: #6366f1;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.property-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.property {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.property-label {
    color: #94a3b8;
    font-size: 14px;
}

.property-value {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
}

.click-hint {
    text-align: center;
    color: #6366f1;
    font-style: italic;
    font-size: 14px;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .chart-info,
    .simulator-content,
    .reactivity-content,
    .calculator-content {
        grid-template-columns: 1fr;
    }
    
    .periodic-section-container {
        grid-template-columns: 1fr;
    }
    
    .elements-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mini-element-card {
        flex: 0 1 auto;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .chart-controls {
        gap: 5px;
    }
    
    .chart-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .quiz-content {
        grid-template-columns: 1fr;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .element-buttons,
    .reaction-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #interactive-charts,
    #flame-test-simulator,
    #reactivity-simulator,
    #electron-config-builder,
    #solubility-calculator,
    #inline-quiz,
    #interactive-periodic-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .chart-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .element-buttons,
    .reaction-buttons {
        grid-template-columns: 1fr;
    }
    
    .mini-element-card {
        grid-template-columns: 25px 35px 1fr 45px;
        padding: 12px;
    }
    
    .element-symbol {
        font-size: 16px;
    }
    
    .element-name {
        font-size: 13px;
    }
}