@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap');

:root {
    --accent-red: #E81123;
    --accent-gold: #FFD700;
    --bg-dark: #0A0A0A;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
}

/* Typography */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    color: transparent;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Composition Grid Overlay */
.comp-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.comp-grid.active {
    opacity: 1;
}

.grid-line-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 215, 0, 0.6);
}

.grid-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 215, 0, 0.6);
}

/* Range Input */
input[type=range] {
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: var(--accent-red);
    cursor: pointer;
    border-radius: 0;
}

/* News Tag */
.news-tag {
    position: relative;
    padding-left: 12px;
}

.news-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-red);
}

/* Dropdown Navigation */
.nav-dropdown .dropdown-panel {
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    transform: translateY(0);
}

/* Select Styling */
select option {
    background: #111;
    color: white;
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Smooth page transitions */
.page-section {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════
   Simulator Lab Styles
   ══════════════════════════════════════════ */

/* Tab Navigation */
.sim-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B7280;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sim-tab:hover {
    color: #D1D5DB;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.sim-tab.active {
    color: #FFD700;
    border-color: #E81123;
    background: rgba(232, 17, 35, 0.08);
    box-shadow: 0 0 20px rgba(232, 17, 35, 0.15);
}

.sim-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #E81123;
}

/* Simulator Panels */
.sim-panel {
    transition: opacity 0.3s ease;
}

.sim-panel.hidden {
    display: none;
}

.sim-panel.active {
    animation: fadeInUp 0.4s ease-out;
}

/* Scene Selector Buttons */
.scene-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.scene-btn.active {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
}

/* DoF Sensor Buttons */
.dof-sensor-btn {
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.dof-sensor-btn:hover {
    color: #D1D5DB;
    border-color: rgba(255, 255, 255, 0.2);
}

.dof-sensor-btn.active {
    color: #E81123;
    border-color: #E81123;
    background: rgba(232, 17, 35, 0.1);
}

/* DoF Preset Buttons */
.dof-preset-btn {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.dof-preset-btn:hover {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

/* White Balance Preset Buttons */
.wb-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9CA3AF;
}

.wb-preset-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Enhanced Slider Styling */
.sim-slider {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, rgba(232, 17, 35, 0.3), rgba(255, 215, 0, 0.3));
    height: 3px;
    border-radius: 2px;
    outline: none;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: #FFD700;
    cursor: pointer;
    border-radius: 0;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    transition: all 0.2s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
    background: #E81123;
    box-shadow: 0 0 12px rgba(232, 17, 35, 0.5);
    transform: scale(1.2);
}

.sim-slider::-moz-range-thumb {
    height: 16px;
    width: 16px;
    background: #FFD700;
    cursor: pointer;
    border: none;
    border-radius: 0;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Metering Mode Buttons */
.meter-mode-btn {
    padding: 10px 14px;
    font-size: 11px;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
}

.meter-mode-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.meter-mode-btn.active {
    color: #FFD700;
    border-color: #E81123;
    background: rgba(232, 17, 35, 0.08);
}

/* Metering Scene Buttons */
.meter-scene-btn {
    padding: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.meter-scene-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.meter-scene-btn.active {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

/* Histogram Trainer Answer Buttons */
.hq-answer-btn {
    padding: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #D1D5DB;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.hq-answer-btn:hover:not(:disabled) {
    color: white;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.hq-answer-btn:disabled {
    cursor: default;
}