/**
 * AnkiGraph Landing Page - Styles
 * Extracted from index.html
 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #000000;
            --bg-secondary: #0d0d0d;
            --bg-tertiary: #171717;
            --bg-hover: #1f1f1f;
            --text-primary: #fafafa;
            --text-secondary: #a3a3a3;
            --text-muted: #737373;
            --border: #262626;
            --border-hover: #404040;
            --accent: #10a37f;
            --accent-hover: #0d8a6b;
            --graph-opacity: 0.5;
        }

        [data-theme="light"] {
            --bg-primary: #ffffff;
            --bg-secondary: #fafafa;
            --bg-tertiary: #f5f5f5;
            --bg-hover: #e5e5e5;
            --text-primary: #171717;
            --text-secondary: #525252;
            --text-muted: #a3a3a3;
            --border: #e5e5e5;
            --border-hover: #d4d4d4;
            --graph-opacity: 0.3;
        }

        html {
            color-scheme: dark;
        }

        [data-theme="light"] {
            color-scheme: light;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Background Graph - Now Interactive */
        #bgGraph {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: var(--graph-opacity);
            transition: opacity 0.3s;
        }

        #bgGraph:hover {
            opacity: calc(var(--graph-opacity) + 0.2);
        }

        #bgGraph .node {
            cursor: pointer;
        }

        #bgGraph .node circle {
            transition: all 0.2s ease;
            stroke-width: 2px;
        }

        #bgGraph .node:hover circle {
            filter: drop-shadow(0 0 8px currentColor);
            stroke-width: 3px;
        }

        #bgGraph .node text {
            font-size: 11px;
            font-weight: 500;
            fill: var(--text-secondary);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        #bgGraph .node:hover text {
            opacity: 1;
        }

        #bgGraph .node.highlighted text {
            opacity: 1;
        }

        #bgGraph .link {
            stroke: #666;
            stroke-opacity: 0.8;
            transition: all 0.2s;
        }

        #bgGraph .link.highlighted {
            stroke: var(--accent);
            stroke-opacity: 1;
            stroke-width: 2px;
        }

        #bgGraph .node.dimmed {
            opacity: 0.15;
        }

        #bgGraph .link.dimmed {
            opacity: 0.05;
        }

        /* Tooltip */
        #graphTooltip {
            position: fixed;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px 20px;
            font-size: 14px;
            pointer-events: none;
            opacity: 0;
            z-index: 1000;
            max-width: 300px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            transition: opacity 0.15s ease;
        }

        #graphTooltip.visible {
            opacity: 1;
        }

        #graphTooltip h4 {
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        #graphTooltip p {
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.5;
        }

        #graphTooltip .tooltip-meta {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border);
            font-size: 12px;
            color: var(--text-muted);
        }

        /* Main Content - Above Graph */
        .main-content {
            position: relative;
            z-index: 10;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            pointer-events: none;
        }

        .main-content > * {
            pointer-events: auto;
        }

        /* Header */
        header {
            padding: 16px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: transparent;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            text-decoration: none;
        }

        .logo svg {
            width: 28px;
            height: 28px;
        }

        .header-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .icon-btn:hover {
            background: var(--bg-hover);
            border-color: var(--border-hover);
            color: var(--text-primary);
        }

        .icon-btn svg {
            width: 18px;
            height: 18px;
        }

        .btn {
            padding: 10px 18px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-ghost {
            background: transparent;
            border: none;
            color: var(--text-secondary);
        }

        .btn-ghost:hover {
            color: var(--text-primary);
            background: var(--bg-tertiary);
        }

        .btn-outline {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
        }

        .btn-outline:hover {
            background: var(--bg-hover);
            border-color: var(--border-hover);
        }

        .btn-primary {
            background: var(--accent);
            border: none;
            color: white;
        }

        .btn-primary:hover {
            background: var(--accent-hover);
        }

        /* Hero */
        .hero {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 40px 24px 80px;
            max-width: 720px;
            margin: 0 auto;
            pointer-events: none;
        }

        .hero > * {
            pointer-events: auto;
        }

        .hero h1 {
            font-size: 56px;
            font-weight: 600;
            line-height: 1.1;
            margin-bottom: 16px;
            letter-spacing: -0.02em;
        }

        .hero p {
            font-size: 18px;
            color: var(--text-secondary);
            max-width: 480px;
            margin-bottom: 40px;
        }

        /* Cards */
        .cards {
            display: flex;
            gap: 16px;
            width: 100%;
            max-width: 560px;
        }

        @media (max-width: 600px) {
            .cards {
                flex-direction: column;
            }
            .hero h1 {
                font-size: 40px;
            }
        }

        .card {
            flex: 1;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .card:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
            transform: translateY(-2px);
        }

        .card-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
        }

        .card:hover .card-icon {
            background: var(--bg-hover);
        }

        .card-icon svg {
            width: 22px;
            height: 22px;
            stroke: var(--text-primary);
        }

        .card h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .card p {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 14px;
        }

        .tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .tag {
            font-size: 12px;
            padding: 4px 10px;
            background: var(--bg-tertiary);
            border-radius: 6px;
            color: var(--text-muted);
        }

        /* Sources */
        .sources {
            margin-top: 48px;
            text-align: center;
        }

        .sources-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        .source-list {
            display: flex;
            justify-content: center;
            gap: 32px;
            flex-wrap: wrap;
        }

        .source-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .source-item:hover {
            opacity: 1;
        }

        .source-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .source-icon img {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }

        /* Footer */
        footer {
            padding: 16px 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 13px;
            color: var(--text-muted);
        }

        footer a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
        }

        footer a:hover {
            color: var(--text-primary);
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            backdrop-filter: blur(4px);
        }

        [data-theme="light"] .modal-overlay {
            background: rgba(0, 0, 0, 0.5);
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 20px;
            width: 100%;
            max-width: 440px;
            max-height: 85vh;
            overflow-y: auto;
            animation: modalSlide 0.2s ease;
        }

        @keyframes modalSlide {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .modal-header {
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
        }

        .modal-header h2 {
            font-size: 18px;
            font-weight: 600;
        }

        .modal-close {
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .modal-body {
            padding: 24px;
        }

        /* Format Grid */
        .format-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .format-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        .format-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .format-item:hover {
            border-color: var(--border-hover);
        }

        .format-item.selected {
            border-color: var(--accent);
            background: rgba(16, 163, 127, 0.08);
        }

        .format-item img {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }

        .format-item-text h4 {
            font-size: 14px;
            font-weight: 500;
        }

        .format-item-text p {
            font-size: 12px;
            color: var(--text-muted);
        }

        /* Upload Zone */
        .upload-zone {
            border: 2px dashed var(--border);
            border-radius: 16px;
            padding: 40px 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .upload-zone:hover,
        .upload-zone.dragover {
            border-color: var(--accent);
            background: rgba(16, 163, 127, 0.05);
        }

        .upload-zone svg {
            width: 32px;
            height: 32px;
            stroke: var(--text-muted);
            margin-bottom: 12px;
        }

        .upload-zone h3 {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .upload-zone p {
            font-size: 13px;
            color: var(--text-muted);
        }

        .upload-zone input {
            display: none;
        }

        /* Progress */
        .progress-container {
            display: none;
            margin-top: 20px;
        }

        .progress-container.active {
            display: block;
        }

        .progress-bar {
            height: 4px;
            background: var(--bg-tertiary);
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .progress-fill {
            height: 100%;
            background: var(--accent);
            width: 0%;
            transition: width 0.3s;
        }

        .progress-text {
            font-size: 13px;
            color: var(--text-muted);
            text-align: center;
        }

        /* Results */
        .import-results {
            display: none;
            padding: 20px;
            background: var(--bg-tertiary);
            border-radius: 12px;
            margin-top: 20px;
        }

        .import-results.active {
            display: block;
        }

        .import-results h4 {
            font-size: 15px;
            font-weight: 500;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            font-size: 28px;
            font-weight: 600;
        }

        .stat-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Form */
        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .form-group input {
            width: 100%;
            padding: 12px 14px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 14px;
            transition: border-color 0.2s;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-group input::placeholder {
            color: var(--text-muted);
        }

        /* Template Chips */
        .templates-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .templates {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .template-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .template-chip:hover {
            border-color: var(--border-hover);
        }

        .template-chip.selected {
            border-color: var(--accent);
            background: rgba(16, 163, 127, 0.08);
            color: var(--accent);
        }

        .template-chip svg {
            width: 14px;
            height: 14px;
        }

        /* Full width button */
        .btn-block {
            width: 100%;
            justify-content: center;
            padding: 14px;
        }
