:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #1e293b;
    --secondary-light: #334155;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
    position: relative;
}

.logo-gg {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.1em;
    letter-spacing: -1px;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
    animation: ggPulse 2s ease-in-out infinite;
}

@keyframes ggPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.9));
    }
}

.logo-icon {
    font-size: 2rem;
}

.logo-icon-svg {
    width: 52px;
    height: 52px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4));
}

.logo:hover .logo-icon-svg {
    transform: rotate(-10deg) scale(1.15);
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.8));
}

.logo:hover .logo-gg {
    animation: ggFlash 0.5s ease-in-out;
}

@keyframes ggFlash {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(251, 191, 36, 1)) brightness(1.2);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-icon-svg {
    width: 44px;
    height: 44px;
}

.footer-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.filters {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Drills Grid */
.drills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.drill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.drill-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.drill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.drill-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drill-difficulty {
    display: flex;
    gap: 4px;
}

.difficulty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.difficulty-dot.active {
    background: var(--primary);
}

.drill-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.drill-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.drill-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.drill-age-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.age-badge {
    padding: 0.125rem 0.5rem;
    background: var(--surface-light);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Program Builder */
.program-builder-section {
    background: var(--secondary);
}

.program-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.setting-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.program-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.available-drills,
.program-drills {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.available-drills h3,
.program-drills h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.drill-search {
    margin-bottom: 1rem;
}

.drill-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
}

.drill-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.available-drills-list,
.program-drills-list {
    max-height: 500px;
    overflow-y: auto;
}

.available-drill-item,
.program-drill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all 0.2s;
}

.available-drill-item:hover,
.program-drill-item:hover {
    border-color: var(--primary);
}

.available-drill-item.dragging,
.program-drill-item.dragging {
    opacity: 0.5;
}

.drill-item-info {
    flex: 1;
}

.drill-item-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.drill-item-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.drill-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drill-duration-input {
    width: 60px;
    padding: 0.25rem 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.875rem;
    text-align: center;
}

.remove-drill {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}

.add-drill-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    font-weight: 500;
}

.add-drill-btn:hover {
    background: var(--primary-dark);
}

.program-summary {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-program {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
}

.program-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.program-actions .btn {
    flex: 1;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.resource-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* About Section */
.about-section {
    background: var(--secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
}

.about-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.about-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.court-diagram {
    width: 100%;
    max-width: 300px;
}

.basketball-court {
    width: 100%;
    height: auto;
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .drill-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.drill-purpose,
.drill-method,
.drill-variations {
    margin-bottom: 1.5rem;
}

.drill-purpose h3,
.drill-method h3,
.drill-variations h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.drill-method ul {
    list-style: none;
}

.drill-method li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.drill-method li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Export Modal */
.export-modal-content {
    max-width: 900px;
}

#export-preview {
    background: var(--surface-light);
    padding: 2rem;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
}

.export-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.export-drill {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.export-drill h4 {
    margin-bottom: 0.5rem;
}

.export-drill-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .program-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .drills-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filter-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .modal.active {
        padding: 1rem;
    }

    .modal-content {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Drill Diagrams */
.drill-diagram {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-sm);
}

.drill-diagram-container {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.drill-diagram-container h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.diagram-instructions {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.diagram-instructions p {
    margin: 0;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.diagram-instructions p:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.diagram-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-dot.offense {
    background: #f97316;
}

.legend-dot.defense {
    background: #3b82f6;
}

.legend-line {
    position: relative;
    padding-left: 20px;
}

.legend-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 2px;
}

.legend-line.movement::before {
    background: #22c55e;
    border: none;
}

.legend-line.pass::before {
    background: #fbbf24;
}

/* Video Embed */
.drill-video {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.drill-video h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-link:hover {
    text-decoration: underline;
}

.video-search-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.video-local-notice {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

/* Drill Visual Row in Modal */
.drill-visual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .drill-visual-row {
        grid-template-columns: 1fr;
    }
}

/* Export Styles */
.export-drill-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.export-drill-info {
    flex: 1;
}

.export-drill-diagram {
    flex-shrink: 0;
    width: 200px;
}

.export-drill-diagram .drill-diagram {
    max-width: 100%;
}

.export-video-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.export-video-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .export-drill-header {
        flex-direction: column;
    }
    
    .export-drill-diagram {
        width: 100%;
        max-width: 250px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .header,
    .hero,
    .drills-section,
    .resources-section,
    .about-section,
    .footer,
    .modal-footer,
    .modal-close,
    .video-container,
    .drill-video,
    .export-video-link {
        display: none !important;
    }

    .modal {
        display: block !important;
        position: static;
    }

    .modal-backdrop {
        display: none;
    }

    .modal-content {
        max-width: 100%;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border: none;
        margin: 0;
        background: white !important;
    }

    #export-preview {
        background: white !important;
        padding: 0;
        color: black !important;
    }

    .export-header {
        border-bottom-color: #333 !important;
    }

    .export-header h2,
    .export-header p {
        color: black !important;
    }

    .export-drill {
        border: 1px solid #ccc;
        break-inside: avoid;
        background: white !important;
        border-left-color: #f97316 !important;
        page-break-inside: avoid;
    }

    .export-drill h4,
    .export-drill p,
    .export-drill li,
    .export-drill-meta span {
        color: black !important;
    }

    .export-drill-diagram {
        display: block !important;
    }

    .drill-diagram {
        max-width: 180px !important;
    }

    .export-drill-header {
        flex-wrap: nowrap;
    }
}
