@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* 1. Brand Colors */
    --primary: #7C3AED;
    --primary-hover: #6D28D9;
    --text-main: #1E1E2F;
    --text-muted: #6B7280;

    /* 2. Flat Surfaces */
    --glass-bg: #FFFFFF;
    --glass-border: rgba(0, 0, 0, 0.05);

    /* 3. Design System: Spacing Grid (8px Base) */
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;

    /* 4. Design System: Radii & Shadows */
    --radius-global: 8px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

/* Screen Reader Visibility Class */
.visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F6F7FB;
    min-height: 100vh;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
}

.hero-header-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    padding: 40px var(--space-20);
    color: #ffffff;
}

.hero-nav {
    max-width: 1400px;
    margin: 0 auto var(--space-48) auto;
    padding-top: var(--space-12);
}

.hero-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 48px;
    color: #ffffff;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 32px;
}

.hero-cta-btn {
    background: #ffffff;
    color: #7C3AED;
    border: none;
    border-radius: 8px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.25);
}

.app-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 96px auto;
    padding: 96px var(--space-20);
}

.main-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

/* Panel Utilities */
.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-global);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: var(--space-32);
}

/* --- SIDEBAR CONTROLS --- */
.controls {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: var(--space-48);
    position: sticky;
    top: 40px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.controls::-webkit-scrollbar {
    width: 6px;
}

.controls::-webkit-scrollbar-thumb {
    background: rgba(140, 107, 217, 0.2);
    /* Softer purple scrollbar */
    border-radius: 6px;
}

.control-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.control-section h3 {
    font-size: 13px;
    font-weight: 900;
    /* Sturdy authority for sidebars */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    /* Highest contrast */
    margin-bottom: var(--space-8);
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    /* Subtly thickened baseline */
    padding-bottom: var(--space-12);
}

textarea {
    width: 100%;
    height: 100px;
    padding: var(--space-16);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    border-radius: var(--radius-global);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    resize: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(151, 122, 227, 0.15);
    /* Significantly subdued focus ring */
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label,
.pseudo-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.color-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.color-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-picker label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

input[type=color] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 100%;
    height: 40px;
    border-radius: var(--radius-global);
    cursor: pointer;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preset-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.preset-controls label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.preset-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 6px var(--space-12);
    border-radius: var(--radius-global);
    border: 1px solid rgba(151, 122, 227, 0.15);
    background: rgba(248, 250, 252, 0.4);
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(151, 122, 227, 0.08);
    color: var(--primary);
    transform: translateY(-1px);
}

.preset-btn[data-bg="transparent"] {
    background-image: repeating-linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), repeating-linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    height: 24px;
    cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    /* Thickened track */
    background: rgba(151, 122, 227, 0.15);
    /* Shared primary tint */
    border-radius: 10px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    /* Strict primary synchronization */
    margin-top: -5px;
    /* Restored centering over 6px track */
    box-shadow: 0 2px 8px rgba(151, 122, 227, 0.3);
    transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --- MAIN CONTENT AREA --- */
.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-32);
}

/* --- QUICK TEMPLATES --- */
.quick-templates {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.template-btn {
    padding: 8px var(--space-16);
    border-radius: var(--radius-global);
    border: 1px solid rgba(151, 122, 227, 0.15);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.template-btn:hover {
    background: rgba(151, 122, 227, 0.05);
    color: var(--primary);
    transform: translateY(-2px);
    border-color: rgba(151, 122, 227, 0.2);
    box-shadow: 0 6px 16px rgba(151, 122, 227, 0.06);
}

.canvas-size-system {
    display: flex;
    justify-content: flex-start;
    /* Exact edge alignment logic */
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.preset-group {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.canvas-size-system select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

#customCanvasInputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

#customCanvasInputs input {
    width: 60px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-align: center;
    outline: none;
}

.multiply-icon {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.3);
}

#preview-container {
    width: 100%;
    min-height: 380px;
    /* Reduced to avoid viewport domination when empty */
    aspect-ratio: auto;
    transition: aspect-ratio 0.2s ease, width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    /* Increased for better presence */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 80px;
    background: #ffffff;
    border-radius: var(--radius-global);
    border: 1px solid rgba(0, 0, 0, 0.06);
    /* Soft intentional framing border */
    box-shadow: var(--shadow-md);
    /* Consistent medium depth */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add a very subtle scale/glow when hovered */
#preview-container:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    /* Re-tuned to avoid purple glow */
}

/* Add a very subtle scale/glow when interacting with the sidebar */
.controls:focus-within~.preview-section #preview-container {
    transform: scale(1.002);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

#preview {
    text-align: center;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    align-self: center;
    transition: font-size 0.05s ease,
        letter-spacing 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        text-shadow 0.2s ease,
        -webkit-text-stroke 0.2s ease,
        line-height 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

#preview.empty-state {
    opacity: 0.4;
    font-style: italic;
    font-weight: 300;
}

.export-options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    /* Precise top-funnel left edge */
}

.export-settings {
    display: flex;
    justify-content: flex-start;
    /* Maintain edge alignment */
    align-items: center;
    gap: 24px;
}

.scale-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scale-selector select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-size: 0.8rem;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.export-settings .toggle-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.export-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.action-btn {
    padding: 10px var(--space-20);
    border-radius: var(--radius-global);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ghost-btn {
    background: rgba(0, 0, 0, 0.02);
    /* Less visual weight */
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px var(--space-16);
    /* Smaller padding for secondary actions */
}

.ghost-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.ghost-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.tertiary-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Extremely soft border */
    padding: 6px 14px;
    border-radius: var(--radius-global);
    font-size: 13px;
    /* Slightly smaller */
    font-weight: 400;
    /* Lighter weight */
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tertiary-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.08);
}

.tertiary-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

/* --- FONT SELECTION GRID --- */
.font-selection-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.font-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.font-search-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 8px var(--space-16);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer base border */
    background: var(--glass-bg);
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: rgba(151, 122, 227, 0.05);
    /* Softer hover */
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(151, 122, 227, 0.05);
    /* Reduced intensity shadow */
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(151, 122, 227, 0.2);
}

#fontSearch {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    font-family: 'Inter', sans-serif;
    width: 250px;
    outline: none;
}

#fontSearch:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(151, 122, 227, 0.1);
}

.font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
}

.font-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 35px var(--space-20);
    border-radius: 16px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-12);
    position: relative;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.font-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.font-card.active {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(140, 107, 217, 0.06);
    /* Less noisy active states */
}

.font-name-label {
    font-size: 12px;
    font-weight: 600;
    /* More readable medium-bold */
    color: var(--text-main);
    /* Darkened slightly */
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.font-preview-text {
    font-size: 28px;
    color: var(--text-main);
    text-align: center;
    transition: all 0.15s ease;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.4;
    /* Set default heart transparency super low */
    transition: transform 0.2s ease, opacity 0.2s ease;
    /* Ensure transition exists */
}

.favorite-btn:hover {
    transform: scale(1.15);
    opacity: 1;
    /* Fully visible on hover */
}

/* Make it fully visible natively when selected */
.favorite-btn.selected {
    opacity: 1;
}

@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }

    .controls {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .export-actions {
        flex-direction: column;
    }

    .font-search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    #fontSearch {
        width: 100%;
    }
}

/* --- ALIGNMENT TOGGLES --- */
.alignment-toggles {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Grey subtle border so it visually doesn't get loud unless active */
    border-radius: 8px;
    overflow: hidden;
}

.align-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    /* Grey internal borders */
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.align-btn:last-child {
    border-right: none;
}

.align-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    /* subtle grey background to maintain calm appearance */
    color: var(--text-main);
}

.align-btn.active {
    background: var(--primary);
    color: white;
}

/* ═══════════════════════════════════════════
   5️⃣ MICRO UX — GLOBAL BUTTON & RANGE
═══════════════════════════════════════════ */
button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

button:active {
    transform: scale(0.97) !important;
}

/* Don't double-apply to favorite-btn (it has its own) */
.favorite-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: none !important;
}

input[type="range"] {
    transition: opacity 0.2s ease;
}

input[type="range"]:hover {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════
   1️⃣ PREVIEW SECTION DEPTH
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   2️⃣ ACTIVE FONT CARD ANIMATION
═══════════════════════════════════════════ */

.font-card.active {
    transform: scale(1.02);
    border: 2px solid #7c5cff;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(124, 92, 255, 0.15);
}

/* ═══════════════════════════════════════════
   3️⃣ TOAST NOTIFICATION SYSTEM
═══════════════════════════════════════════ */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: #7c5cff;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(124, 92, 255, 0.3);
    animation: slideIn 0.3s ease;
    min-width: 220px;
}

.toast.toast-success {
    background: linear-gradient(135deg, #7c5cff 0%, #a855f7 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   4️⃣ GRADIENT CONTROLS
═══════════════════════════════════════════ */
.gradient-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

/* Select Input (Gradient Direction) */
.select-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5cf6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    transition: border-color 0.2s ease;
}

.select-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Gradient Toggle Row */
.toggle-row {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ========================================= */
/* SEO CONTENT STRUCTURE (NON-UI)            */
/* ========================================= */

.seo-intro {
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.seo-intro strong {
    color: var(--text-main);
    font-weight: 600;
}

.seo-content-block {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(151, 122, 227, 0.2);
    width: 100%;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.seo-section h2 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 600;
}

.seo-section p,
.seo-section ul {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.seo-section ul {
    padding-left: 20px;
}

.seo-section li {
    margin-bottom: 8px;
}

.seo-tags-list {
    list-style-type: none;
    padding-left: 0;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.seo-links a {
    text-decoration: none;
    background: rgba(151, 122, 227, 0.1);
    color: var(--primary-hover);
    padding: 6px 14px;
    border-radius: var(--radius-global);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.seo-links a:hover {
    background: var(--primary);
    color: white;
}