/*
Theme Name: SportsTrend (Fresh)
Theme URI: https://yoursite.com
Description: A professional sports blog theme matching your Blogger design. Includes full SEO meta tags, Open Graph, Schema.org JSON-LD, breadcrumbs, sticky nav, sidebar, and responsive layout.
Version: 1.4
Author: Your Name
License: GPL-2.0-or-later
Text Domain: sportstrend
*/

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE REWRITE — v1.4
   Base styles = mobile (320px+)
   @media (min-width: 48em)  = tablet  768px+
   @media (min-width: 62em)  = desktop 992px+
   All units in rem; layout in %, flex, grid.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── Design tokens ── */
:root {
    --primary:        #0a2540;
    --primary-dark:   #051a2e;
    --primary-light:  #1a3d5c;
    --accent:         #ff6b35;
    --accent-light:   #ff8c5a;
    --secondary:      #00d4ff;
    --secondary-light:#33dfff;
    --text:           #1a1a1a;
    --text-muted:     #6b7280;
    --bg-light:       #f7fafc;
    --border:         #e5e7eb;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.10);
    --shadow-md:      0 4px 12px rgba(0,0,0,.15);
    --shadow-lg:      0 10px 30px rgba(0,0,0,.20);
    --shadow-xl:      0 20px 40px rgba(0,0,0,.25);
    --ease:           cubic-bezier(.4,0,.2,1);
    --transition:     all .3s var(--ease);
    --grad-primary:   linear-gradient(135deg,#0a2540 0%,#1a3d5c 50%,#0a2540 100%);
    --grad-accent:    linear-gradient(135deg,#ff6b35 0%,#ff8c5a 100%);
    --content-max:    75rem;
    --sidebar-w:      20rem;
    --page-pad:       max(1rem, env(safe-area-inset-left));
}

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

/* ── Base ── */
html {
    font-size: 100%;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    background: #fafbfc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}
img, video, iframe, svg, embed { max-width: 100%; height: auto; display: block; }

/* ── Accessibility ── */
.skip-link {
    position: absolute; top: -6.25rem; left: 1.25rem;
    padding: .75rem 1.25rem; background: var(--accent); color: #fff;
    text-decoration: none; font-weight: 600; border-radius: .375rem;
    z-index: 1000; transition: top .2s;
}
.skip-link:focus { top: 1.25rem; outline: 2px solid #fff; outline-offset: 2px; }
.screen-reader-text {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ════ HEADER ════ */
.site-header {
    background: var(--grad-primary);
    color: #fff;
    padding: 1.75rem 0 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
}
.site-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%,rgba(255,107,53,.1) 0%,transparent 50%),
                radial-gradient(circle at 80% 50%,rgba(0,212,255,.1) 0%,transparent 50%);
}
.site-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px; background: var(--grad-accent);
}
.header-inner {
    max-width: var(--content-max); margin: 0 auto;
    padding: 0 var(--page-pad); position: relative; z-index: 1;
}
.site-header .site-title {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 7vw, 3.5rem);
    font-weight: 700; letter-spacing: .125rem; text-transform: uppercase;
    text-shadow: 0 4px 8px rgba(0,0,0,.3);
    background: linear-gradient(135deg,#fff 0%,rgba(255,255,255,.9) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    overflow-wrap: anywhere; word-break: break-word; margin-bottom: .5rem;
}
.site-header .site-title a {
    color: inherit; text-decoration: none;
    background: inherit; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.site-header .site-description {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(.75rem, 2.5vw, 1.125rem);
    color: rgba(255,255,255,.95); -webkit-text-fill-color: rgba(255,255,255,.95);
    text-transform: uppercase; letter-spacing: .03em; line-height: 1.45;
}
@media (min-width: 48em) { .site-header { padding: 2.5rem 0 2rem; } }

/* ════ NAVIGATION ════ */
.main-navigation {
    background: rgba(10,37,64,.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 2px solid var(--accent);
    width: 100%;
}
.nav-inner {
    max-width: var(--content-max); margin: 0 auto;
    padding: .625rem var(--page-pad);
    display: grid; grid-template-columns: 1fr auto; align-items: center;
}
.menu-toggle {
    display: inline-flex; align-items: center; gap: .625rem;
    padding: .75rem 1rem; min-height: 2.75rem;
    background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.35);
    border-radius: .5rem; color: rgba(255,255,255,.95);
    cursor: pointer; font-family: 'Oswald', sans-serif;
    font-size: .875rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    transition: var(--transition);
    grid-column: 2; grid-row: 1; justify-self: end;
    -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover, .menu-toggle:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.menu-toggle-bars {
    display: flex; flex-direction: column; justify-content: center;
    gap: .3125rem; width: 1.375rem; height: 1.125rem;
}
.menu-toggle-bars span {
    display: block; height: 2px; background: currentColor; border-radius: 1px;
    transition: transform .25s ease, opacity .2s ease;
}
.main-navigation.is-open .menu-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.main-navigation.is-open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.main-navigation.is-open .menu-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu-panel {
    grid-column: 1 / -1; grid-row: 2;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .4s ease, opacity .25s ease, visibility .4s;
    border-top: 1px solid rgba(255,255,255,.12); margin-top: .625rem;
}
.main-navigation.is-open .nav-menu-panel {
    max-height: min(78vh, 32.5rem);
    overflow-x: hidden; overflow-y: auto;
    opacity: 1; visibility: visible;
    padding-top: .25rem; -webkit-overflow-scrolling: touch;
}
.main-navigation ul { list-style: none; display: flex; flex-direction: column; align-items: stretch; }
.main-navigation li { width: 100%; }
.main-navigation a {
    color: rgba(255,255,255,.9); text-decoration: none;
    font-family: 'Oswald', sans-serif; font-weight: 600;
    font-size: .9375rem; text-transform: uppercase; letter-spacing: .03em;
    padding: .875rem .75rem; min-height: 3rem;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.main-navigation a:hover { color: var(--accent); background: rgba(255,107,53,.1); }
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    color: var(--accent); background: rgba(255,107,53,.18);
    border-left: 3px solid var(--accent); padding-left: 1rem;
}
@media (min-width: 62em) {
    .nav-inner { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
    .menu-toggle { display: none !important; }
    .nav-menu-panel {
        max-height: none !important; overflow: visible !important;
        opacity: 1 !important; visibility: visible !important;
        border-top: none !important; margin-top: 0 !important; padding-top: 0 !important;
        flex: 1 1 auto;
    }
    .main-navigation ul { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .main-navigation li { width: auto; }
    .main-navigation a {
        padding: 1.25rem 1.5rem; min-height: auto;
        border-bottom: none; position: relative;
    }
    .main-navigation a::before {
        content: ''; position: absolute; bottom: 0; left: 1.5rem; right: 1.5rem;
        height: 3px; background: var(--grad-accent);
        transform: scaleX(0); transition: transform .3s ease;
    }
    .main-navigation a:hover::before { transform: scaleX(1); }
    .main-navigation .current-menu-item > a,
    .main-navigation .current-page-ancestor > a {
        background: transparent; border-left: none; padding-left: 1.5rem;
    }
}

/* ════ BREADCRUMBS ════ */
.breadcrumb-wrap { max-width: var(--content-max); margin: .875rem auto; padding: 0 var(--page-pad); }
.breadcrumb-nav {
    font-size: .8125rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.breadcrumb-nav a { color: var(--accent); text-decoration: none; transition: color .3s; }
.breadcrumb-nav a:hover { color: var(--secondary); text-decoration: underline; }
.breadcrumb-nav .sep { margin: 0 .25rem; color: var(--text-muted); }
.breadcrumb-nav span.current { color: var(--text); }

/* ════ MAIN LAYOUT — single column mobile, two-column desktop ════ */
.site-main {
    display: flex; flex-direction: column;
    width: 100%; max-width: var(--content-max);
    margin: 1.5rem auto 2.5rem;
    padding: 0 var(--page-pad);
    gap: 0; box-sizing: border-box;
}
.blog-posts { order: 1; width: 100%; min-width: 0; }
.sidebar    { order: 2; width: 100%; min-width: 0; margin-top: 2rem; }

@media (min-width: 62em) {
    .site-main {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,var(--sidebar-w));
        gap: 2.5rem; padding: 0 1.875rem; margin: 3.125rem auto;
    }
    .blog-posts { grid-column: 1; order: unset; }
    .sidebar    { grid-column: 2; order: unset; margin-top: 0; }
}

/* ════ POST CARDS ════ */
.post-card {
    background: #fff; border-radius: 1rem; margin-bottom: 2rem;
    box-shadow: var(--shadow-md); transition: var(--transition);
    position: relative; overflow: hidden; isolation: isolate;
    border-top: 4px solid var(--accent); width: 100%;
}
@media (hover: hover) and (pointer: fine) {
    .post-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-8px); }
}
.post-card .entry-title {
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    font-size: clamp(1.25rem, 5vw, 2rem);
    line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    padding: 1.25rem 1rem 0; margin-bottom: .75rem; position: relative; z-index: 2;
}
.post-card .entry-title a {
    color: var(--text); text-decoration: none; display: block;
    overflow-wrap: break-word; word-break: break-word; transition: var(--transition);
}
.post-card .entry-title a:hover { color: var(--accent); }
@media (min-width: 48em) {
    .post-card .entry-title { padding: 1.75rem 1.5rem 0; font-size: clamp(1.35rem,3vw,1.85rem); }
}
@media (min-width: 62em) {
    .post-card .entry-title { padding: 2.5rem 2.5rem 0; font-size: clamp(1.5rem,2.5vw,2rem); }
}

.post-meta {
    font-family: 'Oswald', sans-serif; font-size: .8125rem; color: var(--text-muted);
    padding: 0 1rem .75rem; border-bottom: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
    text-transform: uppercase; letter-spacing: .03em; font-weight: 600;
    position: relative; z-index: 2;
}
.post-meta span { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; }
.post-meta strong { color: var(--text); font-weight: 600; margin-right: .25rem; }
@media (min-width: 48em) { .post-meta { padding: 0 1.5rem 1rem; gap: 1rem; } }
@media (min-width: 62em) { .post-meta { padding: 0 2.5rem 1.5rem; gap: 1.5rem; } }

.post-tags { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.post-tags a {
    color: var(--primary); text-decoration: none; font-size: .75rem; font-weight: 600;
    display: inline-flex; align-items: center;
    padding: .375rem .75rem; min-height: 2.75rem;
    background: var(--bg-light); border: 1px solid var(--border); border-radius: 1.25rem;
    text-transform: uppercase; letter-spacing: .02em; transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.post-tags a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.post-thumbnail { width: 100%; margin-bottom: 0; position: relative; z-index: 2; }
.post-thumbnail a { display: block; }
.post-thumbnail img { width: 100%; max-height: 15rem; object-fit: cover; display: block; }
@media (min-width: 48em) { .post-thumbnail img { max-height: 22rem; } }
@media (min-width: 62em) { .post-thumbnail img { max-height: 25rem; } }

.entry-content {
    padding: .75rem 1rem 1.25rem; font-size: 1rem; line-height: 1.8;
    color: var(--text); position: relative; z-index: 2;
    word-wrap: break-word; overflow-wrap: break-word;
}
.entry-content p { margin-bottom: 1.375rem; }
.entry-content pre, .entry-content table { max-width: 100%; overflow-x: auto; }
.entry-content iframe, .entry-content embed { max-width: 100%; }
.entry-content a {
    color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
    font-weight: 600; transition: color .2s ease; position: relative; z-index: 10; cursor: pointer;
}
.entry-content a:hover { color: var(--accent); }
.entry-content img {
    max-width: 100%; height: auto; border-radius: .75rem; margin: 1.25rem 0;
    box-shadow: var(--shadow-lg); border: 3px solid var(--border); transition: var(--transition);
}
@media (hover: hover) and (pointer: fine) {
    .entry-content img:hover { transform: scale(1.01); box-shadow: var(--shadow-xl); border-color: var(--accent); }
}
.entry-content h2, .entry-content h3 {
    font-family: 'Oswald', sans-serif; color: var(--primary);
    margin: 1.875rem 0 .9375rem; text-transform: uppercase;
}
.entry-content .privacy-external-link {
    display: inline-block; margin: .75rem 0 .5rem; padding: .625rem 1.125rem;
    background: var(--bg-light); border: 2px solid var(--primary);
    border-radius: .5rem; color: var(--primary) !important;
    text-decoration: none !important; font-weight: 700;
}
.entry-content .privacy-external-link:hover { background: var(--primary); color: #fff !important; }
@media (min-width: 48em) { .entry-content { padding: .75rem 1.5rem 1.5rem; font-size: 1.0625rem; } }
@media (min-width: 62em) { .entry-content { padding: 0 2.5rem 2.5rem; font-size: 1.125rem; } }

.read-more-btn {
    display: flex; align-items: center; justify-content: center; gap: .625rem;
    background: var(--grad-accent); color: #fff !important; text-decoration: none;
    border-radius: .5rem; font-family: 'Oswald', sans-serif; font-weight: 700;
    font-size: .9375rem; text-transform: uppercase; letter-spacing: .06em;
    margin: .75rem 1rem 1.5rem; padding: .875rem 1.25rem;
    box-shadow: var(--shadow-md); transition: var(--transition);
    position: relative; z-index: 2; overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.read-more-btn::after {
    content: ''; width: 0; height: 0;
    border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
    display: inline-block; vertical-align: middle; margin-left: .625rem;
}
.read-more-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff !important; }
@media (min-width: 48em) {
    .read-more-btn { display: inline-flex; width: auto; margin: 1rem 1.5rem 1.75rem; padding: .875rem 1.5rem; }
}
@media (min-width: 62em) { .read-more-btn { margin: 1.25rem 2.5rem 2.5rem; padding: 1rem 2rem; } }

/* ════ SINGLE POST ════ */
.single .post-card { max-width: min(51.25rem,100%); margin-left: auto; margin-right: auto; padding: 0 0 2rem; }
.single .post-card .entry-title {
    font-size: clamp(1.3rem,5.5vw,2.5rem); line-height: 1.25;
    padding: 1.25rem 1rem .75rem; margin-bottom: 0; border-bottom: 3px solid var(--accent);
}
.single .post-meta { padding: .5rem 1rem .625rem; border-top: none; }
.single .entry-content { padding: .625rem 1rem 2rem; font-size: 1.0625rem; line-height: 1.85; }
.single .post-thumbnail { margin: 0 0 1.25rem; }
.single .post-thumbnail img {
    width: 100%; height: auto; max-height: none;
    border-radius: .75rem; box-shadow: var(--shadow-lg); border: 3px solid var(--border); object-fit: cover;
}
@media (min-width: 48em) {
    .single .post-card .entry-title { padding: 1.5rem 1.5rem 1rem; }
    .single .post-meta { padding: .625rem 1.5rem; }
    .single .entry-content { padding: .75rem 1.5rem 2.5rem; }
}

.post-meta--tags { padding: .875rem 1rem; border-top: 1px solid var(--border); border-bottom: none; flex-wrap: wrap; gap: .625rem; }
@media (min-width: 48em) { .post-meta--tags { padding: .875rem 1.5rem; } }

.related-articles { margin-top: 1.5rem; }
.related-articles__heading { padding: 1.25rem 1rem 0; font-size: clamp(1.1rem,4vw,1.5rem); margin-bottom: 0; }
.related-articles__list { list-style: none; padding: .75rem 1rem 1.25rem; }
.related-articles__item { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.related-articles__item:last-child { border-bottom: none; }
.related-articles__link {
    color: var(--primary); text-decoration: none; font-weight: 600; font-size: .9375rem;
    line-height: 1.4; display: flex; align-items: center; min-height: 2.75rem; transition: color .2s ease;
}
.related-articles__link:hover { color: var(--accent); }
@media (min-width: 48em) {
    .related-articles__heading { padding: 1.5rem 1.5rem 0; }
    .related-articles__list { padding: 1rem 1.5rem 1.5rem; }
}

/* ════ SIDEBAR & WIDGETS ════ */
.widget {
    background: #fff; border-radius: 1rem; padding: 1.125rem 1rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md); transition: var(--transition);
    border-top: 4px solid var(--accent); width: 100%; box-sizing: border-box; overflow-wrap: break-word;
    overflow: hidden;
}
@media (hover: hover) and (pointer: fine) { .widget:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); } }
@media (min-width: 48em) { .widget { padding: 1.5rem; } }

.widget-title {
    font-family: 'Oswald', 'Bebas Neue', sans-serif; font-size: 1.25rem;
    margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border);
    color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; position: relative;
}
.widget-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 5rem; height: 2px; background: var(--grad-accent);
}
.widget ul { list-style: none; }
.widget li { padding: .625rem 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: none; }
.widget a {
    color: var(--primary); text-decoration: none; font-size: .875rem;
    display: flex; align-items: center; min-height: 2.5rem; transition: color .3s;
}
.widget a:hover { color: var(--secondary); }

.widget_search .search-form {
    display: flex;
    align-items: stretch;
    gap: .375rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* WP default search form uses: label + input.search-submit */
.widget_search .search-form > label {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    display: block;
    overflow: hidden;
}
.widget_search .search-form .search-field,
.widget_search input[type="search"],
.widget_search input[type="text"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: .625rem .75rem;
    border: 1px solid var(--border);
    border-radius: .25rem;
    font-family: inherit;
    font-size: 1rem;
    min-height: 2.75rem;
    box-sizing: border-box;
}
.widget_search .search-form .search-submit,
.widget_search button,
.widget_search input[type="submit"] {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='22' y2='22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.1rem 1.1rem;
    color: transparent;
    border: none;
    border-radius: .25rem;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .3s var(--ease);
}
.widget_search .search-form .search-submit::after,
.widget_search button::after { display: none; }
.widget_search button:hover,
.widget_search input[type="submit"]:hover { background-color: var(--accent); }
@media (max-width: 23.75em) {
    .widget_search .search-form {
        flex-direction: column;
    }
    .widget_search .search-form .search-submit,
    .widget_search button,
    .widget_search input[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
}
.widget_categories li, .widget_tag_cloud li { display: flex; justify-content: space-between; }
.widget_categories .count, .label-count { color: #999; font-size: .75rem; }

/* ════ PAGINATION ════ */
.blog-pager {
    margin: 1.5rem 0; padding: 1rem;
    display: flex; flex-direction: column; align-items: stretch; gap: .75rem;
}
.blog-pager a {
    display: flex; align-items: center; justify-content: center;
    padding: .75rem 1.5rem; min-height: 2.75rem;
    background: var(--grad-accent); color: #fff !important; text-decoration: none;
    border-radius: .5rem; font-family: 'Oswald', sans-serif; font-weight: 600;
    font-size: .875rem; text-transform: uppercase; letter-spacing: .03em;
    transition: var(--transition); box-shadow: var(--shadow-md);
    -webkit-tap-highlight-color: transparent;
}
.blog-pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-pager .home-link { background: var(--primary); }
.blog-pager .home-link:hover { background: var(--primary-light); }
@media (min-width: 48em) {
    .blog-pager { flex-direction: row; justify-content: center; align-items: center; gap: 1.25rem; }
    .blog-pager a { width: auto; }
}

/* ════ CONTACT FORM ════ */
.contact-form { max-width: 37.5rem; width: 100%; }
.contact-form__field { margin-bottom: 1rem; }
.contact-form__label {
    display: block; font-weight: 600; margin-bottom: .5rem;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .03em;
    font-size: .875rem; color: var(--text);
}
.contact-form__required { color: var(--accent); margin-left: .125rem; }
.contact-form__input {
    width: 100%; padding: .8125rem .875rem; border: 2px solid var(--border); border-radius: .5rem;
    font-size: 1rem; font-family: inherit; line-height: 1.5; color: var(--text); background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
    box-sizing: border-box; -webkit-appearance: none; appearance: none; min-height: 2.75rem;
}
.contact-form__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,.15); outline: none; }
.contact-form__textarea { resize: vertical; min-height: 8.75rem; }
.contact-form__submit {
    display: flex; align-items: center; justify-content: center; gap: .625rem;
    background: var(--grad-accent); color: #fff; padding: 1rem 2.25rem;
    border: none; border-radius: .5rem; font-weight: 700; font-size: 1rem;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em;
    cursor: pointer; box-shadow: var(--shadow-md); transition: var(--transition);
    min-height: 3.25rem; width: 100%; -webkit-tap-highlight-color: transparent;
}
.contact-form__submit:hover, .contact-form__submit:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); outline: none; }
@media (min-width: 48em) { .contact-form__submit { width: auto; } }

/* ════ FOOTER ════ */
.site-footer {
    background: linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%);
    color: #fff; padding: 2.5rem var(--page-pad) max(1.875rem,env(safe-area-inset-bottom));
    margin-top: 3rem; position: relative; overflow: hidden; width: 100%;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg,var(--secondary),var(--secondary-light));
}
.footer-widgets {
    max-width: var(--content-max); margin: 0 auto 2.5rem; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 1.75rem; position: relative; z-index: 1;
}
@media (min-width: 48em) { .footer-widgets { grid-template-columns: repeat(2,1fr); gap: 2rem; } }
@media (min-width: 62em) {
    .footer-widgets { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 2.5rem; }
    .site-footer { padding-top: 3.75rem; margin-top: 5rem; }
}
.footer-widget-title {
    font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 1.25rem;
    color: var(--secondary); font-weight: 700; position: relative; padding-bottom: .75rem;
}
.footer-widget-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 3.125rem; height: 2px; background: var(--secondary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .75rem; }
.footer-col a {
    color: rgba(255,255,255,.85); text-decoration: none; font-size: .9375rem;
    display: flex; align-items: center; min-height: 2.5rem;
    transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.footer-col a:hover { color: var(--secondary); padding-left: .9375rem; }
.footer-col p { font-size: .875rem; line-height: 1.6; color: #ddd; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem;
    text-align: center; font-size: .875rem; color: rgba(255,255,255,.7);
    position: relative; z-index: 1;
    max-width: var(--content-max); margin: 0 auto;
}
.footer-bottom p { margin: .3125rem 0; }

/* ════ PAGE TEMPLATES ════ */
.page .post-card .entry-title, .page .entry-title { padding: 1.25rem 1rem 0; }
@media (min-width: 48em) { .page .post-card .entry-title, .page .entry-title { padding: 1.75rem 1.5rem 0; } }

/* ════ READING PROGRESS ════ */
#reading-progress-bar {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: var(--grad-accent); z-index: 9999; transition: width .1s linear; pointer-events: none;
}

/* ════ BACK TO TOP ════ */
#back-to-top {
    position: fixed;
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
    width: 3rem; height: 3rem; background: var(--accent); color: #fff;
    border: none; border-radius: 50%; cursor: pointer; font-size: 1.25rem; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(.75rem);
    transition: opacity .3s ease, transform .3s ease, visibility .3s; z-index: 500;
    -webkit-tap-highlight-color: transparent;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover, #back-to-top:focus-visible { background: var(--primary); outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 62em) and (hover: hover) and (pointer: fine) { #back-to-top { display: none; } }

/* ════ GLOBAL INPUT FLOOR (prevent iOS zoom) ════ */
input[type="text"], input[type="email"], input[type="search"],
input[type="url"], input[type="tel"], input[type="password"],
textarea, select { font-size: max(1rem, 16px); }

/* ════ UTILITY ════ */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
@supports (-webkit-touch-callout: none) {
    .main-navigation { position: -webkit-sticky; position: sticky; }
}
