/* ============================================
   Formatlar Theme CSS
   Pixel-perfect match with Vercel/Next.js export
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Colors - matching oklch values */
    --background: #fafafa;
    --foreground: #1a2332;
    --card: #ffffff;
    --card-foreground: #1a2332;
    --primary: #1e3a5f;
    --primary-foreground: #fafcff;
    --secondary: #f1f3f8;
    --secondary-foreground: #1e3a5f;
    --muted: #f0f2f7;
    --muted-foreground: #64748b;
    --accent: #059669;
    --accent-foreground: #fafcff;
    --border: #e2e6ef;
    --input: #e2e6ef;
    --ring: #4a6fa5;
    --destructive: #ef4444;

    /* Radius */
    --radius: 0.625rem;
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

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

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar__inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .navbar__inner {
        padding: 0 2rem;
    }
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--primary-foreground);
}

.navbar__logo-icon svg {
    width: 1rem;
    height: 1rem;
}

.navbar__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
    font-family: var(--font-mono);
}

.navbar__logo-tld {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.navbar__links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar__links {
        display: flex;
    }
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__menu li a,
.navbar__menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.15s;
}

.navbar__menu li a:hover,
.navbar__menu a:hover {
    color: var(--foreground);
}

.navbar__cta {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .navbar__cta {
        display: flex;
    }
}

.navbar__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.navbar__mobile-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .navbar__mobile-toggle {
        display: none;
    }
}

.navbar__mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--background);
    padding: 1rem;
}

.navbar__mobile-menu.is-open {
    display: block;
}

@media (min-width: 768px) {
    .navbar__mobile-menu {
        display: none !important;
    }
}

.navbar__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.navbar__mobile-nav li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.15s;
}

.navbar__mobile-nav li a:hover {
    color: var(--foreground);
}

.navbar__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.25rem;
    border: 1px solid transparent;
}

.btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
}

.btn--full {
    width: 100%;
}

.btn--primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn--primary:hover {
    background: #17304f;
}

.btn--accent {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn--accent:hover {
    background: #048558;
}

.btn--ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn--ghost:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.btn--outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    background: var(--secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--background);
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 58, 95, 0.08), transparent);
}

.hero__inner {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .hero__inner {
        padding-top: 7rem;
        padding-bottom: 6rem;
    }
}

.hero__content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    background: var(--secondary);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero__badge-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--accent);
}

.hero__badge span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--foreground);
    text-wrap: balance;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3.75rem;
    }
}

.hero__title-highlight {
    color: var(--primary);
}

.hero__subtitle {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--muted-foreground);
    text-wrap: pretty;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.125rem;
    }
}

/* Hero Search */
.hero__search {
    max-width: 36rem;
    margin: 2.5rem auto 0;
}

.hero__search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 95, 0.05);
}

.hero__search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    padding: 0 1rem;
    position: relative; /* anchor for suggestions dropdown */
}

.hero__search-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--muted-foreground);
}

.hero__search-input {
    width: 100%;
    height: 2.75rem;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: var(--foreground);
    font-family: var(--font-sans);
}

.hero__search-input::placeholder {
    color: var(--muted-foreground);
}

.hero__search-btn {
    flex-shrink: 0;
    border-radius: var(--radius-lg);
}

.hero__search-popular {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.hero__search-popular a {
    color: var(--muted-foreground);
    transition: color 0.15s;
}

.hero__search-popular a:hover {
    color: var(--primary);
}

/* Search Suggestions Dropdown */
.hero__suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: -1rem;           /* align with bar edge, not just the input-wrap */
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 200;
    overflow: hidden;
    min-width: 280px;
}

.hero__suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
    cursor: pointer;
}

.hero__suggestion-item:last-of-type {
    border-bottom: none;
}

.hero__suggestion-item:hover,
.hero__suggestion-item--active {
    background: var(--secondary);
}

.hero__suggestion-item svg {
    flex-shrink: 0;
    color: var(--muted-foreground);
}

.hero__suggestion-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero__suggestion-footer {
    padding: 0.375rem 1rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    background: var(--secondary);
    border-top: 1px solid var(--border);
}

/* Hero Trust */
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hero__trust {
        gap: 2.5rem;
    }
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.hero__trust-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.hero__trust-icon {
    width: 1rem;
    height: 1rem;
}

.hero__trust-divider {
    width: 1px;
    height: 1rem;
    background: var(--border);
}

.hero__trust-divider--desktop,
.hero__trust-item--desktop {
    display: none;
}

@media (min-width: 768px) {
    .hero__trust-divider--desktop {
        display: block;
    }
    .hero__trust-item--desktop {
        display: flex;
    }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    border-bottom: 1px solid var(--border);
    background: rgba(241, 243, 248, 0.5);
    padding: 2.5rem 0;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-bar__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.stats-bar__icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

.stats-bar__value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .stats-bar__value {
        font-size: 1.875rem;
    }
}

.stats-bar__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

/* ============================================
   CATEGORY PILLS
   ============================================ */
.category-pills {
    border-bottom: 1px solid var(--border);
    background: var(--background);
    padding: 1.5rem 0;
}

.category-pills__scroll {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-pills__scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--card);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
    cursor: pointer;
    font-family: var(--font-sans);
}

.category-pill svg {
    width: 1rem;
    height: 1rem;
}

.category-pill:hover {
    border-color: rgba(30, 58, 95, 0.3);
    color: var(--foreground);
}

.category-pill--active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.category-pill--active:hover {
    border-color: var(--primary);
    color: var(--primary-foreground);
}

/* ============================================
   PRICE FILTER (Bug 6 fix)
   ============================================ */
.price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.price-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--card);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    white-space: nowrap;
    transition: all 0.15s;
    cursor: pointer;
    font-family: var(--font-sans);
}

.price-pill svg {
    width: 0.875rem;
    height: 0.875rem;
}

.price-pill:hover {
    border-color: rgba(5, 150, 105, 0.3);
    color: var(--foreground);
}

.price-pill--active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-foreground);
}

.price-pill--active:hover {
    border-color: var(--accent);
    color: var(--accent-foreground);
}

/* ============================================
   TEMPLATE SECTION & GRID
   ============================================ */
.template-section {
    background: var(--background);
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .template-section {
        padding: 5rem 0;
    }
}

.template-section__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .template-section__header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.template-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .template-section__title {
        font-size: 1.875rem;
    }
}

.template-section__subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.template-section__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    transition: color 0.15s;
}

.template-section__view-all:hover {
    color: rgba(30, 58, 95, 0.8);
}

.template-section__view-all svg {
    width: 1rem;
    height: 1rem;
}

.template-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

.template-grid--3 {
    grid-template-columns: 1fr;
}

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

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

/* ============================================
   TEMPLATE CARD
   ============================================ */
.template-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    transition: all 0.2s;
    overflow: hidden;
    position: relative;        /* Bug 2 fix: anchor for stretched link */
    cursor: pointer;
}

/*
 * Top accent stripe via ::before — z-index: 10 ensures it renders above
 * all children (doc frame, iframe, thumbnail) regardless of their background.
 * Free card = green, Premium card = navy (matches respective tag colours).
 */
.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #059669;   /* green — Ücretsiz */
    z-index: 10;
    pointer-events: none;
}

.template-card--premium::before {
    background: #1e3a5f;   /* navy — Premium */
}

/* Bug 2 fix: stretched link — entire card is clickable via title anchor */
.template-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.template-card:hover {
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 10px 20px -4px rgba(5, 150, 105, 0.12);
}

/* Premium card: faint blue-tinted background */
.template-card--premium {
    background: #f8faff;
    border-color: rgba(30, 58, 95, 0.18);
}

.template-card--premium:hover {
    border-color: rgba(30, 58, 95, 0.35);
    box-shadow: 0 10px 20px -4px rgba(30, 58, 95, 0.1);
}

.template-card__preview {
    position: relative;
    display: flex;
    align-items: stretch;       /* Bug 1 fix: children fill full height */
    height: 14rem;
    background: var(--secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}

/* Premium: blue-tinted preview background */
.template-card--premium .template-card__preview {
    background: #e8eef8;
}

.template-card__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Format Document Preview (miniature A4) --- */
.template-card__doc-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.template-card__doc-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s;
}

.template-card:hover .template-card__doc-frame {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.template-card__doc-content {
    padding: 14px 18px;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 5.5px;
    line-height: 1.6;
    color: #1a1a1a;
    overflow: hidden;
    height: 100%;
    max-height: 14rem;
    pointer-events: none;
    contain: strict;
    isolation: isolate;
    -webkit-user-select: none;
    user-select: none;
    word-break: break-word;
}

.template-card__doc-content h1,
.template-card__doc-content h2,
.template-card__doc-content h3 {
    font-weight: 700;
    margin: 0 0 3px;
}

.template-card__doc-content h1 {
    font-size: 8px;
    text-align: center;
    margin-bottom: 6px;
    color: #000;
}

.template-card__doc-content h2 {
    font-size: 6.5px;
    margin-top: 5px;
    color: #1e3a5f;
}

.template-card__doc-content h3 {
    font-size: 5.5px;
}

.template-card__doc-content p {
    margin: 0 0 3px;
    text-align: justify;
}

.template-card__doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 3px 0;
}

.template-card__doc-content td,
.template-card__doc-content th {
    border: 0.5px solid #ccc;
    padding: 1.5px 2px;
    font-size: 4px;
}

.template-card__doc-content strong {
    font-weight: 600;
}

/* Iframe-based preview for HTML-uploaded formats (card) */
.template-card__iframe-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.template-card__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 1130px;
    border: none;
    transform: scale(0.45);
    transform-origin: top left;
    pointer-events: none;
}

/* Iframe preview for single-format detail page */
.single-format__iframe-wrap {
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.single-format__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 1130px;
    border: none;
    transform: scale(0.75);
    transform-origin: top left;
    pointer-events: none;
}

/* Fade-out gradient at bottom */
.template-card__doc-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, rgba(255,255,255,0.95));
    pointer-events: none;
}

/* File type badge overlay on doc preview */
.template-card__doc-badge {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* Fallback: icon-based preview (no content) */
.template-card__preview-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* Bug 1 fix: center icon vertically */
    gap: 0.5rem;
    width: 100%;               /* Bug 1 fix: fill full preview width */
    height: 100%;              /* Bug 1 fix: fill full preview height */
}

.template-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    background: var(--background);
    box-shadow: var(--shadow-sm);
}

.template-card__icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
}

.template-card__downloads {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.template-card__downloads svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--muted-foreground);
}

.template-card__downloads span {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.template-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
    padding: 1.25rem;
}

.template-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.template-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--foreground);
}

.template-card__title a {
    color: inherit;
}

.template-card__title a:hover {
    color: var(--primary);
}

.template-card__desc {
    flex: 1;
    font-size: 0.75rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

/* ============================================
   TAGS / BADGES
   ============================================ */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.625rem;
    font-weight: 500;
}

.tag--free {
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tag--premium {
    background: var(--primary);
    color: var(--primary-foreground);
    border: 1px solid transparent; /* Bug 3 fix: match height with bordered tags */
}

.tag--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
}

.tag--lg {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.file-badge--sm {
    font-size: 0.5rem;
    padding: 0.0625rem 0.375rem;
}

.file-badge--lg {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.badge-docx {
    background: #3b82f6;
    color: #fff;
}

.badge-xlsx {
    background: #22c55e;
    color: #fff;
}

.badge-pdf {
    background: #ef4444;
    color: #fff;
}

/* badge-notion removed */

/* ============================================
   BUNDLE BANNER
   ============================================ */
.bundle-banner {
    background: var(--primary);
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .bundle-banner {
        padding: 5rem 0;
    }
}

.bundle-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .bundle-banner__inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.bundle-banner__content {
    max-width: 36rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .bundle-banner__content {
        text-align: left;
    }
}

.bundle-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.bundle-banner__badge svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

.bundle-banner__badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-foreground);
}

.bundle-banner__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-foreground);
    text-wrap: balance;
}

@media (min-width: 768px) {
    .bundle-banner__title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .bundle-banner__title {
        font-size: 2.25rem;
    }
}

.bundle-banner__subtitle {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.7);
    text-wrap: pretty;
}

.bundle-banner__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.bundle-banner__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bundle-banner__feature svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--accent);
}

.bundle-banner__feature span {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.bundle-banner__cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

@media (min-width: 1024px) {
    .bundle-banner__cta-box {
        align-items: flex-start;
    }
}

.bundle-banner__price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.bundle-banner__price-current {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-foreground);
}

.bundle-banner__price-old {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.bundle-banner__price-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.bundle-banner__buy-btn {
    margin-top: 0.5rem;
    width: 100%;
}

.bundle-banner__guarantee {
    text-align: center;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SEO PAGES ARCHIVE (Blog)
   ============================================ */
.seo-archive {
    padding: 3rem 0 5rem;
}

.seo-archive__header {
    text-align: center;
    margin-bottom: 2rem;
}

.seo-archive__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.seo-archive__subtitle {
    color: var(--muted-foreground);
    font-size: 1rem;
    max-width: 40rem;
    margin: 0 auto;
}

.seo-archive__filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.seo-archive__search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
    color: var(--muted-foreground);
}

.seo-archive__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--foreground);
}

.seo-archive__search-input::placeholder {
    color: var(--muted-foreground);
}

.seo-archive__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.seo-archive__sort-label {
    color: var(--muted-foreground);
    white-space: nowrap;
}

.seo-archive__sort-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
}

.seo-archive__count {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Card Grid */
.seo-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.seo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    overflow: hidden;
    transition: all 0.2s;
}

.seo-card:hover {
    border-color: rgba(30, 58, 95, 0.3);
    box-shadow: 0 8px 20px -4px rgba(30, 58, 95, 0.08);
    transform: translateY(-2px);
}

.seo-card__link {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.seo-card__body {
    flex: 1;
    padding: 1.25rem 1.25rem 0.75rem;
}

.seo-card__keyword {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: rgba(30, 58, 95, 0.07);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

.seo-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.seo-card__excerpt {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seo-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.seo-card__formats {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Pagination */
.seo-archive__pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.seo-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--foreground);
    text-decoration: none;
    transition: all 0.15s;
    background: var(--card);
}

.seo-archive__pagination .page-numbers:hover,
.seo-archive__pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.seo-archive__empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted-foreground);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--secondary);
}

.site-footer .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    .site-footer .container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.footer__grid {
    display: grid;
    gap: 2.5rem;
}

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

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer__brand {
    /* Spans 2 cols on lg */
}

@media (min-width: 1024px) {
    .footer__brand {
        grid-column: span 1;
    }
}

.footer__description {
    margin-top: 1rem;
    max-width: 24rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.footer__col-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer__links li a,
.footer__links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.15s;
}

.footer__links li a:hover,
.footer__links a:hover {
    color: var(--foreground);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer__copyright {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.footer__disclaimer {
    max-width: 32rem;
    font-size: 0.625rem;
    line-height: 1.625;
    color: rgba(100, 116, 139, 0.7);
    margin-top: 0.25rem;
}

.footer__bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
}

.footer__stripe-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: rgba(99, 91, 255, 0.08);
    border: 1px solid rgba(99, 91, 255, 0.2);
    border-radius: 6px;
    padding: 0.25rem 0.625rem;
    letter-spacing: 0.01em;
}

.footer__stripe-badge svg {
    color: #635BFF;
    flex-shrink: 0;
}

.footer__made-in {
    font-size: 0.625rem;
    color: var(--muted-foreground);
}

/* ============================================
   SINGLE FORMAT PAGE
   ============================================ */
.breadcrumb-section {
    background: var(--secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--muted-foreground);
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--foreground);
}

.breadcrumb__sep {
    color: var(--border);
}

.breadcrumb__current {
    color: var(--foreground);
    font-weight: 500;
}

.single-format {
    padding: 3rem 0;
}

.single-format__layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .single-format__layout {
        grid-template-columns: 1fr 1fr;
    }
}

.single-format__preview {
    position: sticky;
    top: 5rem;
    align-self: start;
}

.single-format__image {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.single-format__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
    border-radius: var(--radius-xl);
    background: var(--secondary);
    border: 1px solid var(--border);
}

.single-format__placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.single-format__placeholder-icon {
    width: 4rem;
    height: 4rem;
    color: var(--primary);
}

.single-format__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.single-format__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.single-format__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .single-format__title {
        font-size: 1.875rem;
    }
}

.single-format__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.single-format__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.single-format__meta-item svg {
    width: 1rem;
    height: 1rem;
}

.single-format__content {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--foreground);
}

.single-format__content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.single-format__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.single-format__content p {
    margin-bottom: 1rem;
}

.single-format__content ul,
.single-format__content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.single-format__content ul {
    list-style: disc;
}

.single-format__content ol {
    list-style: decimal;
}

.single-format__content li {
    margin-bottom: 0.25rem;
}

.single-format__action {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.single-format__price-box {
    text-align: center;
}

.single-format__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
}

.single-format__formats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.single-format__formats h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.single-format__format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   ARCHIVE SECTION
   ============================================ */
.archive-section {
    padding: 3rem 0;
}

.archive-section__header {
    margin-bottom: 2rem;
}

.archive-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .archive-section__title {
        font-size: 1.875rem;
    }
}

.archive-section__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.template-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted-foreground);
}

.template-grid__empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--muted-foreground);
    opacity: 0.5;
}

.pagination-wrap {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-wrap .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: all 0.15s;
}

.pagination-wrap .page-numbers:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.pagination-wrap .page-numbers.current {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* ============================================
   SEO PAGE
   ============================================ */
.seo-page {
    padding: 3rem 0;
}

.seo-page__layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .seo-page__layout {
        grid-template-columns: 2fr 1fr;
    }
}

.seo-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .seo-page__title {
        font-size: 2.25rem;
    }
}

.seo-page__keyword-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
}

.seo-page__keyword-badge svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--muted-foreground);
}

.seo-page__keyword-badge span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.seo-page__body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--foreground);
}

.seo-page__body h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.seo-page__body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.seo-page__body p {
    margin-bottom: 1rem;
}

.seo-page__body ul,
.seo-page__body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.seo-page__body ul {
    list-style: disc;
}

.seo-page__body ol {
    list-style: decimal;
}

.seo-page__related-keywords {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.seo-page__related-keywords h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.seo-page__keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.seo-page__keyword-link {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    transition: all 0.15s;
}

.seo-page__keyword-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 58, 95, 0.04);
}

.seo-page__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.seo-page__sidebar-box {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
}

.seo-page__sidebar-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.seo-page__format-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.seo-page__format-item:last-of-type {
    border-bottom: none;
}

.seo-page__format-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.seo-page__format-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.seo-page__format-info {
    flex: 1;
}

.seo-page__format-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.15s;
    display: block;
}

.seo-page__format-title:hover {
    color: var(--primary);
}

.seo-page__format-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.seo-page__no-formats {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    padding: 1rem 0;
}

.seo-page__cta-box {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--primary);
    text-align: center;
}

.seo-page__cta-box svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
    margin: 0 auto 0.75rem;
}

.seo-page__cta-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    margin-bottom: 0.5rem;
}

.seo-page__cta-box p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

/* ============================================
   RELATED FORMATS
   ============================================ */
.related-formats {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

/* ============================================
   LOADING STATE
   ============================================ */
.template-grid--loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.search-results-section {
    padding: 3rem 0;
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.template-card {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   CARD ACTION BUTTONS (3-button layout)
   ============================================ */
.template-card__actions {
    display: flex;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.25rem;
    position: relative;        /* Bug 2 fix: above stretched link */
    z-index: 1;
}

.template-card__actions .btn {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

.template-card__actions .btn--full {
    flex: 1 1 100%;
}

.btn--xs {
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
    border-radius: var(--radius-md);
    gap: 0.25rem;
}

.btn--xs svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* ============================================
   SINGLE FORMAT - LOGIN REQUIRED
   ============================================ */
.single-format__login-required {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.single-format__login-required p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.single-format__login-required p svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--muted-foreground);
}

.single-format__register-link {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.single-format__register-link a {
    color: var(--primary);
    font-weight: 600;
}

.single-format__download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.single-format__download-buttons .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.single-format__price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-top: 0.25rem;
}

.single-format__format-tip {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.single-format__legal-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.6875rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    font-style: italic;
}

/* ============================================
   FOOTER COMPANY INFO
   ============================================ */
.footer__company-info {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer__company-info a {
    color: var(--primary);
}

/* ============================================
   STATIC PAGES (About, Privacy, FAQ, etc.)
   ============================================ */
.static-page {
    padding: 3rem 0;
}

.static-page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.static-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .static-page__title {
        font-size: 2.25rem;
    }
}

.static-page__subtitle {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.static-page__content {
    max-width: 48rem;
    margin: 0 auto;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--foreground);
}

.static-page__content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.static-page__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.static-page__content p {
    margin-bottom: 1rem;
}

.static-page__content ul,
.static-page__content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.static-page__content ul {
    list-style: disc;
}

.static-page__content li {
    margin-bottom: 0.375rem;
}

.static-page__content a {
    color: var(--primary);
    text-decoration: underline;
}

.static-page__content strong {
    font-weight: 600;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--background);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    transition: background 0.15s;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-item__question:hover {
    background: var(--secondary);
}

.faq-item__question svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--muted-foreground);
    transition: transform 0.2s;
}

.faq-item.active .faq-item__question svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

.faq-item.active .faq-item__answer {
    padding: 0 1.25rem 1rem;
    max-height: 500px;
}

/* ============================================
   LOGO IMAGE
   ============================================ */
.navbar__logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 0;
    display: inline-block;
}

.navbar__logo-img--footer {
    /* no filter — dark logo visible on light footer bg */
}

/* ============================================
   USER AVATAR (Navbar)
   ============================================ */
.navbar__user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    display: inline-block;
}

/* ============================================
   LOGIN / AUTH PAGE
   ============================================ */
.fp-login-box {
    max-width: 420px;
    margin: 3rem auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.fp-login-box__header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.fp-login-box__logo {
    margin: 0 auto 1rem;
    display: block;
}

.fp-login-box__header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.fp-login-box__header p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.fp-login-box__error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1.5rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    color: #dc2626;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    border: 1px solid #fecaca;
}

/* Google Sign-In Button */
.fp-login-box__google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: calc(100% - 3rem);
    margin: 1.25rem 1.5rem 0;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.fp-login-box__google-btn:hover {
    background: #f7f8f8;
    border-color: #c6c6c6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.fp-login-box__google-btn:active {
    background: #eee;
}

.fp-login-box__google-btn svg {
    flex-shrink: 0;
}

/* Divider */
.fp-login-box__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 1.5rem;
}

.fp-login-box__divider::before,
.fp-login-box__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.fp-login-box__divider span {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Login Form */
.fp-login-box__form {
    padding: 0 1.5rem;
}

.fp-login-box__field {
    margin-bottom: 1rem;
}

.fp-login-box__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.fp-login-box__field input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--foreground);
    background: var(--background);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fp-login-box__field input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

.fp-login-box__field input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.6;
}

.fp-login-box__remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.fp-login-box__remember label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--foreground);
    cursor: pointer;
}

.fp-login-box__remember input[type="checkbox"] {
    accent-color: var(--accent);
}

.fp-login-box__remember a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.fp-login-box__remember a:hover {
    text-decoration: underline;
}

/* Full width button */
.btn--full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.fp-login-box__form .btn--full {
    padding: 0.75rem;
    font-size: 0.9375rem;
}

/* Footer */
.fp-login-box__footer {
    text-align: center;
    padding: 1.25rem 1.5rem 2rem;
}

.fp-login-box__footer p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin: 0;
}

.fp-login-box__footer strong {
    color: var(--accent);
}

/* Logged in state */
.fp-login-box__logged-in {
    text-align: center;
    padding: 3rem 2rem;
}

.fp-login-box__avatar {
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--accent);
}

.fp-login-box__avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--muted-foreground);
}

.fp-login-box__logged-in h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.fp-login-box__logged-in p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.fp-login-box__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Login page template override */
.page-template-page-login .site-main,
body.page .fp-login-box {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

/* ============================================
   @KEYFRAMES
   ============================================ */
/* Google Auth Button (used on single-format page) */
.btn--google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn--google:hover {
    background: #f7f8f8;
    border-color: #c6c6c6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    color: #3c4043;
}

.btn--google svg {
    flex-shrink: 0;
}

/* Navbar CTA with Google icon */
.navbar__cta .btn--accent svg {
    display: inline-block;
    vertical-align: middle;
}

/* Hide breadcrumb on login page, center content */
.page-slug-giris .breadcrumb-section {
    display: none;
}

.page-slug-giris .seo-page__title {
    display: none;
}

.page-slug-giris .seo-page {
    padding-top: 0;
}
