/* ============================================
   Live Updates - Modern Light & Dark Mode Dashboard
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Colors - Light Mode (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-elevated: #ffffff;

    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.3);

    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.3);

    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --border-focus: var(--primary);

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 48px;
    --space-10: 64px;

    /* Radius Scale */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows - Light Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode - Activated by system preference or manual toggle */
@media (prefers-color-scheme: dark) {
    :root {
        /* Colors - Dark Mode */
        --bg-primary: #0f1419;
        --bg-secondary: #16181d;
        --bg-tertiary: #1c1f26;
        --surface: #242830;
        --surface-hover: #2d3139;
        --surface-elevated: #2a2e38;

        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --text-inverse: #0f172a;

        --border: #313844;
        --border-light: #3f4654;

        /* Shadows - Dark Mode */
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    }
}

/* Manual dark mode class override (if theme.js sets it) */
[data-theme="dark"],
.dark-mode {
    /* Colors - Dark Mode */
    --bg-primary: #0f1419;
    --bg-secondary: #16181d;
    --bg-tertiary: #1c1f26;
    --surface: #242830;
    --surface-hover: #2d3139;
    --surface-elevated: #2a2e38;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --border: #313844;
    --border-light: #3f4654;

    /* Shadows - Dark Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* Manual light mode class override */
[data-theme="light"],
.light-mode {
    /* Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border: #e2e8f0;
    --border-light: #cbd5e1;

    /* Shadows - Light Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================
   Base Styles
   ============================================ */

/* Remove body background override - let other stylesheets handle it */

/* ============================================
   Layout Container
   ============================================ */

.live-updates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
}

@media (min-width: 768px) {
    .live-updates-container {
        padding: var(--space-8) var(--space-6);
    }
}

/* ============================================
   Header Section
   ============================================ */

.page-header {
    margin-bottom: var(--space-8);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 var(--space-4) 0;
    letter-spacing: -0.02em;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }
}

/* ============================================
   Toolbar Section
   ============================================ */

.toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.toolbar-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sync-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.search-container {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    padding-left: var(--space-10);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--border-focus);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: 100%;
    }
}

/* ============================================
   Error Banner
   ============================================ */

.error-banner {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-left: 4px solid var(--error);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    border-radius: var(--radius-md);
    color: var(--error);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: slideDown var(--transition-base);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-banner strong {
    font-weight: 600;
}

/* ============================================
   Task Sections
   ============================================ */

.task-section {
    margin-bottom: var(--space-8);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.section-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.section-count {
    background: var(--surface);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* ============================================
   Task Cards Grid
   ============================================ */

.task-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 768px) {
    .task-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .task-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.task-card-compact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.task-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.task-card-compact:hover {
    border-color: var(--border-light);
    background: var(--surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.task-card-compact:hover::before {
    transform: scaleX(1);
}

.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.task-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.task-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.task-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
}

/* ============================================
   Status Badges
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    width: fit-content;
}

.status-in-progress {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.status-in-progress::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--warning);
    border-radius: var(--radius-full);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-done {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status-done::before {
    content: '✓';
    font-size: 0.75rem;
}

/* ============================================
   Buttons
   ============================================ */

.view-details-btn,
.refresh-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    outline: none;
    white-space: nowrap;
}

.view-details-btn:hover,
.refresh-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.view-details-btn:active,
.refresh-button:active {
    transform: translateY(0);
}

.view-details-btn:focus-visible,
.refresh-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.refresh-button:disabled {
    background: var(--surface);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   Loading Spinner
   ============================================ */

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================
   Modal Styles
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 1;
    animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface-elevated);
    margin: var(--space-5);
    padding: 0;
    max-width: 900px;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    position: relative;
    animation: modalSlideUp var(--transition-slow);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.modal-header h2 {
    margin: var(--space-3) 0 0 0;
    color: var(--text-primary);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    padding-right: var(--space-8);
}

.modal-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Modal content styling */
.modal-body h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-top: var(--space-6);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.modal-body h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-top: var(--space-5);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.modal-body h5 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.modal-body p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.modal-body ul,
.modal-body ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.modal-body li {
    margin-bottom: var(--space-2);
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-5) 0;
    border: 1px solid var(--border);
}

.modal-body figure {
    margin: var(--space-5) 0;
}

.modal-body figcaption {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    margin-top: var(--space-3);
    font-size: 0.9rem;
}

.modal-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: var(--space-5);
    margin: var(--space-5) 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: var(--space-4) var(--space-5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.modal-body pre {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-4) 0;
    border: 1px solid var(--border);
}

.modal-body code {
    background: var(--bg-secondary);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-light);
    border: 1px solid var(--border);
}

.modal-body pre code {
    background: none;
    padding: 0;
    border: none;
}

.modal-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-6) 0;
}

.modal-body .callout {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}

.modal-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    background: var(--surface);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.loading-modal {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    color: var(--text-secondary);
}

.loading-modal .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
    margin: 0 auto var(--space-4);
}

.cover-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: 1px solid var(--border);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .task-card-compact {
        padding: var(--space-4);
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--space-4);
    }

    .cover-image {
        border-radius: 0;
    }
}

/* ============================================
   Collapsed View Styles
   ============================================ */

.collapsed-view {
    margin-bottom: var(--space-6);
}

.collapsed-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.collapsed-section p {
    color: var(--text-primary);
}

.collapsed-section:last-child {
    border-bottom: none;
}

.collapsed-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--space-3) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.collapsed-list {
    list-style: disc;
    padding-left: var(--space-6);
    margin: 0;
}

.collapsed-list li {
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    line-height: 1.6;
}

.next-step-item {
    background: var(--warning-bg);
    border-left: 3px solid var(--warning);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.file-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.file-item a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.file-more {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: var(--space-2);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.gallery-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.toggle-full-content-btn {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-6) auto;
    width: fit-content;
}

.toggle-full-content-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.toggle-full-content-btn svg {
    transition: transform var(--transition-base);
}

.full-content {
    animation: fadeIn var(--transition-base);
}

/* Image Lightbox Styles */
.image-lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-base);
}

.lightbox-overlay {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: var(--surface);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--error);
    color: white;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .gallery-thumb {
        height: 100px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
