/* ===== Global ===== */
:root {
    --primary: #4a6cf7;
    --primary-dark: #3a5ce4;
    --header-bg: #0f1117;
    --footer-bg: #0f1117;
    --footer-text: #adb5bd;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
}

/* ===== Header ===== */
.site-header .navbar {
    background: var(--header-bg);
    border-bottom: 1px solid #1e2330;
    padding: 0.75rem 0;
}

.navbar-brand, .footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-icon {
    font-size: 1.4rem;
}

.nav-link {
    color: #cbd3ea !important;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.dropdown-menu {
    background: #1a1f2e;
    border: 1px solid #2a3045;
}

.dropdown-item {
    color: #cbd3ea;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #2a3045;
    color: #fff;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid #1e2330;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.85rem;
}

.footer-links a, .footer-copy {
    color: var(--footer-text);
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* ===== Intro Section ===== */
.intro-section {
    background: linear-gradient(135deg, #0f1117 0%, #1a1f2e 100%);
    color: #fff;
}

.intro-section h1 {
    text-shadow: 0 2px 12px rgba(74, 108, 247, 0.3);
}

.intro-section .lead {
    color: #cbd3ea;
}

/* ===== Preview Section ===== */
.preview-section {
    background: #f0f2f8;
}

.preview-wrapper {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.preview-placeholder {
    width: 400px;
    max-width: 100%;
    height: 120px;
    border: 2px dashed #c0c7d8;
    border-radius: 8px;
    color: #8892a4;
    font-size: 0.9rem;
    background: #fff;
}

#gif-preview {
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    max-width: 100%;
}

.result-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
}

/* ===== Options Section ===== */
.options-section {
    background: #fff;
}

.section-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1f2e;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ===== Styles Grid ===== */
.styles-section {
    background: #f0f2f8;
}

.style-tile {
    border-radius: 10px;
    padding: 14px 10px;
    cursor: pointer;
    text-align: center;
    border: 3px solid transparent;
    transition: border-color 0.15s, transform 0.1s;
    user-select: none;
}

.style-tile:hover {
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.style-tile.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

.style-tile-label {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.style-tile-name {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* ===== FAQ Section ===== */
.faq-section {
    background: #fff;
}

.accordion-button:not(.collapsed) {
    background: #f0f2f8;
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ===== Utility ===== */
.font-monospace {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* ===== Spinner ===== */
.spinner-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
