/* ===================================
   PROJECT: BRICK COMMAND - Master Styles
   Mobile-optimized for iPhone 15 Plus
   =================================== */

/* Root Variables */
:root {
    /* WWII Colors */
    --wwii-primary: #4a5a3f;
    --wwii-secondary: #6b7c5c;
    --wwii-dark: #2c3e2f;
    --wwii-accent: #8b9474;
    --wwii-highlight: #c41e3a;

    /* Clone Wars Colors */
    --cw-primary: #1e3a8a;
    --cw-secondary: #2563eb;
    --cw-republic: #dc2626;
    --cw-separatist: #7c3aed;
    --cw-accent: #f97316;

    /* Castle/Medieval Colors */
    --castle-purple: #4b0082;
    --castle-purple-light: #8b00ff;
    --castle-accent: #ffc40c;

    /* Filmmaking Colors */
    --film-primary: #374151;
    --film-secondary: #6b7280;
    --film-accent: #10b981;
    --film-highlight: #f59e0b;

    /* Neutral/Base */
    --base-black: #0a0a0a;
    --base-dark: #1a1a1a;
    --base-gray: #2d2d2d;
    --base-light-gray: #9ca3af;
    --base-white: #f9fafb;
    --base-off-white: #e5e7eb;

    /* LEGO Accent Colors */
    --lego-red: #c91a09;
    --lego-blue: #0055bf;
    --lego-yellow: #ffc40c;
    --lego-green: #00af4d;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background: var(--base-dark);
    color: var(--base-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 100%;
    padding: 1rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 2rem;
    }
}

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--base-black) 0%, var(--base-gray) 100%);
    border: 3px solid var(--wwii-primary);
    border-radius: 4px;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.classification {
    background: var(--wwii-highlight);
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    color: white;
    border-radius: 2px;
}

.date-display {
    color: var(--base-light-gray);
    font-weight: bold;
}

.site-title {
    font-size: 1.75rem;
    letter-spacing: 4px;
    margin: 0.5rem 0;
    color: var(--lego-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
}

.commander-id {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--base-light-gray);
    margin-top: 0.5rem;
}

.header-divider {
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--wwii-primary) 20%,
        var(--lego-yellow) 50%,
        var(--wwii-primary) 80%,
        transparent 100%);
    margin-top: 1rem;
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--wwii-primary);
    color: var(--lego-yellow);
}

/* Mission Intro */
.mission-intro {
    background: var(--base-gray);
    padding: 1.5rem;
    border-left: 4px solid var(--lego-red);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.mission-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--base-off-white);
}

.status-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 3px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: default;
    user-select: none;
}

.badge-active {
    background: transparent;
    color: var(--lego-green);
    border-color: var(--lego-green);
}

.badge-ready {
    background: transparent;
    color: var(--lego-blue);
    border-color: var(--lego-blue);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.action-card {
    background: var(--base-black);
    padding: 1.5rem;
    border-left: 4px solid var(--lego-yellow);
    border-top: 1px solid var(--base-gray);
    border-right: 1px solid var(--base-gray);
    border-bottom: 1px solid var(--base-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--base-white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card:hover,
.action-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 196, 12, 0.3);
    border-left-color: var(--lego-green);
    border-left-width: 6px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.action-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.action-card p {
    font-size: 0.9rem;
    color: var(--base-light-gray);
    line-height: 1.5;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--lego-red);
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 3px;
    letter-spacing: 1px;
}

/* Navigation Categories */
.nav-grid {
    margin-bottom: 2rem;
}

.nav-category {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border-width: 3px;
}

/* Section Color Coding */
.nav-category.filmmaking {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: var(--lego-green);
}

.nav-category.wwii {
    background: linear-gradient(135deg, var(--wwii-dark) 0%, var(--wwii-primary) 100%);
    border-color: var(--wwii-highlight);
}

.nav-category.clonewars {
    background: linear-gradient(135deg, var(--cw-primary) 0%, var(--cw-secondary) 100%);
    border-color: var(--cw-accent);
}

.nav-category.castle {
    background: linear-gradient(135deg, #4b0082 0%, #8b00ff 100%); /* Royal purple - indigo to violet */
    border-color: var(--lego-yellow);
}

.nav-category.learning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: var(--lego-yellow);
}

.nav-category.battle {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    border-color: var(--lego-red);
}

.category-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.filmmaking .category-title {
    background: var(--film-primary);
    border-left: 4px solid var(--film-accent);
}

.wwii .category-title {
    background: var(--wwii-primary);
    border-left: 4px solid var(--wwii-highlight);
}

.clonewars .category-title {
    background: var(--cw-primary);
    border-left: 4px solid var(--cw-accent);
}

.nav-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .nav-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nav-card {
    background: var(--base-gray);
    padding: 1.5rem;
    border-radius: 6px;
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--base-white);
    transition: all 0.3s ease;
    position: relative;
}

.nav-card:hover {
    border-color: var(--lego-yellow);
    background: var(--base-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.filmmaking .nav-card {
    border-color: var(--film-secondary);
}

.filmmaking .nav-card:hover {
    border-color: var(--film-accent);
    background: var(--film-primary);
}

.wwii .nav-card {
    border-color: var(--wwii-secondary);
}

.wwii .nav-card:hover {
    border-color: var(--wwii-highlight);
    background: var(--wwii-dark);
}

.clonewars .nav-card {
    border-color: var(--cw-secondary);
}

.clonewars .nav-card:hover {
    border-color: var(--cw-accent);
    background: var(--cw-primary);
}

.castle .nav-card {
    border-color: #8b00ff;
    transition: all 0.3s ease;
}

.castle .nav-card:hover {
    border-color: var(--lego-yellow) !important;
    background: linear-gradient(135deg, #4b0082, #8b00ff) !important; /* Royal purple gradient */
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 20px rgba(139, 0, 255, 0.5) !important;
}

.learning .nav-card {
    border-color: #e67e22;
    transition: all 0.3s ease;
}

.learning .nav-card:hover {
    border-color: var(--lego-yellow) !important;
    background: linear-gradient(135deg, #d35400, #f39c12) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4) !important;
}

.battle .nav-card {
    border-color: #dc143c;
    transition: all 0.3s ease;
}

.battle .nav-card:hover {
    border-color: var(--lego-yellow) !important;
    background: linear-gradient(135deg, #8b0000, #dc143c) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4) !important;
}

.nav-card:active {
    transform: scale(0.98);
}

/* Hover Info Tooltips */
.nav-card[data-info]:hover::after {
    content: attr(data-info);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.95);
    color: var(--lego-yellow);
    border: 2px solid var(--lego-yellow);
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: tooltipFade 0.2s ease-in;
}

.nav-card[data-info]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 8px solid transparent;
    border-top-color: var(--lego-yellow);
    z-index: 1000;
    pointer-events: none;
}

@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-number {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--base-light-gray);
    letter-spacing: 2px;
}

.nav-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--base-light-gray);
    line-height: 1.5;
}

.qr-mini {
    display: none; /* Hidden - QR codes not needed */
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--wwii-primary) 50%,
        transparent 100%);
    margin-bottom: 1.5rem;
}

.footer-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--base-light-gray);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.7rem;
    color: var(--base-light-gray);
    font-style: italic;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .no-print {
        display: none;
    }

    .main-header,
    .nav-card,
    .action-card {
        border-color: black;
        background: white;
    }
}

/* Page-Specific: Content Pages */
.page-header {
    background: linear-gradient(135deg, var(--base-black) 0%, var(--base-gray) 100%);
    padding: 2rem 1.5rem;
    border-radius: 6px;
    border: 3px solid var(--wwii-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.page-header.wwii {
    border-color: var(--wwii-primary);
}

.page-header.clonewars {
    border-color: var(--cw-primary);
}

.page-header.filmmaking {
    border-color: var(--film-primary);
}

.page-title {
    font-size: 1.75rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    color: var(--lego-yellow);
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--base-light-gray);
    letter-spacing: 2px;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--base-gray);
    color: var(--lego-yellow);
    text-decoration: none;
    border: 2px solid var(--wwii-primary);
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    background: var(--wwii-primary);
    transform: translateX(-4px);
}

/* Content Sections */
.content-section {
    background: var(--base-gray);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    border-left: 4px solid var(--wwii-primary);
}

.content-section.wwii {
    border-left-color: var(--wwii-highlight);
}

.content-section.clonewars {
    border-left-color: var(--cw-accent);
}

.content-section.filmmaking {
    border-left-color: var(--film-accent);
}

.content-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--lego-yellow);
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.content-section li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--lego-yellow);
    font-weight: bold;
}

/* Forms & Interactive Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--lego-yellow);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--base-black);
    color: var(--base-white);
    border: 2px solid var(--wwii-primary);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--lego-yellow);
}

.btn {
    padding: 0.875rem 1.75rem;
    background: var(--wwii-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--wwii-highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

/* Info Boxes */
.info-box {
    background: var(--base-black);
    padding: 1.25rem;
    border-radius: 6px;
    border: 2px solid var(--lego-blue);
    margin: 1.5rem 0;
}

.info-box.warning {
    border-color: var(--lego-yellow);
}

.info-box.success {
    border-color: var(--lego-green);
}

.info-box-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: var(--lego-yellow);
}

/* Code/Output Display */
.output-display {
    background: var(--base-black);
    padding: 1rem;
    border-radius: 4px;
    border: 2px solid var(--lego-green);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin-top: 1rem;
    color: var(--lego-green);
    overflow-x: auto;
}

/* ===================================
   INFO TOOLTIPS (Tap-to-Show Help)
   =================================== */

.info-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 24px;
    text-align: center;
    background: var(--lego-blue);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0.5rem;
    border: 2px solid var(--base-dark);
    transition: all 0.2s;
    vertical-align: middle;
    /* Larger touch target on mobile */
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

.info-icon:hover,
.info-icon:active {
    background: var(--lego-yellow);
    color: #000;
    transform: scale(1.1);
}

.tooltip-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--base-gray);
    border: 3px solid var(--lego-yellow);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}

.tooltip-popup.active {
    display: block;
    animation: tooltipFadeIn 0.3s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.tooltip-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

.tooltip-overlay.active {
    display: block;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lego-yellow);
}

.tooltip-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--lego-yellow);
}

.tooltip-close {
    background: var(--lego-red);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.tooltip-close:hover,
.tooltip-close:active {
    background: #ff4444;
    transform: scale(1.1);
}

.tooltip-content {
    color: #ccc;
    line-height: 1.6;
}

.tooltip-content strong {
    color: var(--lego-yellow);
}

.tooltip-content ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.tooltip-content li {
    margin: 0.25rem 0;
}

/* ===================================
   JUMP NAVIGATION (Sticky Nav Bar)
   =================================== */

.jump-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--base-dark), var(--base-black));
    border-top: 2px solid var(--lego-yellow);
    border-bottom: 2px solid var(--lego-yellow);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.jump-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--base-black);
    border: 2px solid var(--lego-yellow);
    border-radius: 12px;
    color: var(--lego-yellow);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
    cursor: pointer;
    min-width: 90px;
    min-height: 44px;
}

.jump-icon {
    font-size: 1.75rem;
    line-height: 1;
    display: block;
}

.jump-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jump-btn:hover,
.jump-btn:active {
    background: var(--lego-yellow);
    color: #000;
    border-color: var(--lego-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 196, 12, 0.5);
}

.jump-btn:active {
    transform: translateY(-1px);
}

/* Hide scrollbar but keep functionality */
.jump-nav::-webkit-scrollbar {
    height: 4px;
}

.jump-nav::-webkit-scrollbar-track {
    background: var(--base-dark);
}

.jump-nav::-webkit-scrollbar-thumb {
    background: var(--lego-yellow);
    border-radius: 2px;
}

/* Responsive Touch Targets for Mobile */
@media (max-width: 767px) {
    /* Ensure ALL interactive elements meet 44x44px minimum */
    .nav-card,
    .action-card,
    .btn,
    button,
    .filter-btn,
    .filter-chip,
    .preset-btn,
    .compare-btn,
    .quick-btn,
    a[class*="btn"],
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    .info-icon {
        width: 24px;
        height: 24px;
        line-height: 22px;
        font-size: 0.85rem;
    }

    .jump-nav {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .jump-btn {
        padding: 0.75rem 1rem;
        min-width: 90px;
        min-height: 44px;
    }

    .jump-icon {
        font-size: 1.5rem;
    }

    .jump-text {
        font-size: 0.65rem;
    }
}

/* ===================================
   MOBILE-FIRST: iPhone 15 Plus Optimizations
   (430px width - handles grids, touch targets)
   =================================== */
@media (max-width: 430px) {
    /* Force single-column grids on narrow phones */
    .card-grid,
    .action-grid,
    .nav-cards,
    .tactics-grid,
    .simulator-container {
        grid-template-columns: 1fr !important;
    }

    /* Prevent horizontal scroll on character cards */
    .character-stat-card {
        min-width: unset;
        max-width: 100%;
    }

    /* Stack battle simulator controls vertically */
    .battle-controls {
        grid-template-columns: 1fr !important;
    }

    /* Larger text for readability */
    .stat-label-small,
    .filter-label,
    small {
        font-size: 0.85rem;
    }

    /* Ensure modals don't overflow */
    .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Compare mode stacks vertically on iPhone */
    .compare-container {
        grid-template-columns: 1fr !important;
    }

    .vs-divider {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* ===================================
   LANDSCAPE MODE: iPhone 15 Plus Landscape
   (932px x 430px when rotated)
   =================================== */
@media (max-width: 932px) and (orientation: landscape) {
    /* Use horizontal space efficiently in landscape */
    .card-grid,
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jump-nav {
        justify-content: space-between;
    }

    /* Reduce header size in landscape */
    .main-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .site-title {
        font-size: 1.5rem;
    }
}
