/*
Theme Name: MatchStream Pro
Theme URI: https://example.com/matchstream
Author: Your Name
Author URI: https://example.com
Description: A professional WordPress theme for managing and displaying match events with HLS streaming. Features live match ticker, scoreboards, league browsing, drawer menu, and dynamic search button.
Version: 3.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matchstream
Tags: sports, streaming, live, matches, broadcast, dark-theme, responsive, custom-logo, custom-menu, featured-images, threaded-comments, two-columns, right-sidebar
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ============================================
   TABLE OF CONTENTS
   1.  CSS Reset & Base
   2.  Typography
   3.  Layout & Grid
   4.  Header Styles
   5.  Drawer Menu Styles
   6.  Search Modal with Dynamic Button
   7.  Navigation (Desktop)
   8.  Footer Styles
   9.  Widgets
   10. Front Page Components
   11. Single Post/Page
   12. Archive Pages
   13. Comments
   14. Forms & Buttons
   15. Accessibility
   16. Responsive Design
   17. Animations
============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #07090f;
    color: #eceef5;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f0c040;
}

/* --------------------------------------------
   2. Typography
-------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* --------------------------------------------
   3. Layout & Grid
-------------------------------------------- */
.container,
.wrap,
.fp-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

.site-main {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------
   4. Header Styles
-------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 28px;
}

.site-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

.site-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    margin: 0;
}

.site-title a {
    color: #eceef5;
    text-decoration: none;
}

.site-title a:hover {
    color: #f0c040;
}

.site-description {
    font-size: 0.75rem;
    color: #5a647e;
    margin-top: 0.25rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-drawer-toggle,
.search-toggle {
    background: none;
    border: none;
    color: #eceef5;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.menu-drawer-toggle:hover,
.search-toggle:hover {
    color: #f0c040;
    background: rgba(240, 192, 64, 0.1);
    transform: scale(1.05);
}

.menu-drawer-toggle svg,
.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.menu-drawer-toggle {
    display: none;
}

/* --------------------------------------------
   5. Drawer Menu Styles
-------------------------------------------- */
.drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
}

.drawer-menu--open {
    visibility: visible;
}

.drawer-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-menu--open .drawer-menu__overlay {
    opacity: 1;
}

.drawer-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #111520;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer-menu--open .drawer-menu__panel {
    transform: translateX(0);
}

.drawer-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0c0f1a;
}

.drawer-menu__brand {
    flex-shrink: 0;
}

.drawer-menu__site-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    color: #eceef5;
}

.drawer-menu__close {
    background: none;
    border: none;
    color: #eceef5;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.drawer-menu__close:hover {
    color: #f0c040;
    background: rgba(240, 192, 64, 0.1);
    transform: rotate(90deg);
}

.drawer-menu__nav {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
}

.drawer-menu__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-menu__nav li {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.3s ease forwards;
}

.drawer-menu--open .drawer-menu__nav li {
    opacity: 1;
    transform: translateX(0);
}

.drawer-menu__nav li:nth-child(1) { animation-delay: 0.05s; }
.drawer-menu__nav li:nth-child(2) { animation-delay: 0.1s; }
.drawer-menu__nav li:nth-child(3) { animation-delay: 0.15s; }
.drawer-menu__nav li:nth-child(4) { animation-delay: 0.2s; }
.drawer-menu__nav li:nth-child(5) { animation-delay: 0.25s; }
.drawer-menu__nav li:nth-child(6) { animation-delay: 0.3s; }
.drawer-menu__nav li:nth-child(7) { animation-delay: 0.35s; }
.drawer-menu__nav li:nth-child(8) { animation-delay: 0.4s; }
.drawer-menu__nav li:nth-child(9) { animation-delay: 0.45s; }
.drawer-menu__nav li:nth-child(10) { animation-delay: 0.5s; }

.drawer-menu__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #8892aa;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.drawer-menu__nav a:hover {
    background: rgba(240, 192, 64, 0.1);
    color: #f0c040;
    transform: translateX(4px);
}

.drawer-menu__nav .current-menu-item a {
    background: rgba(240, 192, 64, 0.15);
    color: #f0c040;
}

.drawer-menu__nav .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.drawer-menu__nav .sub-menu {
    margin-left: 1rem;
    margin-top: 0.5rem;
    display: none;
}

.drawer-menu__nav .sub-menu a {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.drawer-menu__footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #5a647e;
}

.drawer-widget {
    margin-bottom: 1rem;
}

.drawer-widget-title {
    font-family: 'Anton', sans-serif;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #eceef5;
}

/* --------------------------------------------
   6. Search Modal with Dynamic Button
-------------------------------------------- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
}

.search-modal--open {
    visibility: visible;
}

.search-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal--open .search-modal__overlay {
    opacity: 1;
}

.search-modal__container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    width: 100%;
    background: #111520;
    border-bottom: 1px solid rgba(240, 192, 64, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.search-modal--open .search-modal__container {
    transform: translateY(0);
    opacity: 1;
}

.search-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0c0f1a;
}

.search-modal__title {
    font-family: 'Anton', sans-serif;
    font-size: 1.125rem;
    margin: 0;
    color: #eceef5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-modal__title::before {
    content: "🔍";
    font-size: 1rem;
}

.search-modal__close {
    background: none;
    border: none;
    color: #8892aa;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.search-modal__close:hover {
    color: #f0c040;
    background: rgba(240, 192, 64, 0.1);
    transform: rotate(90deg);
}

.search-modal__content {
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Dynamic Search Button Styles */
.search-form-wrapper {
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.dynamic-search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #eceef5;
    font-size: 1.125rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.dynamic-search-input:focus {
    outline: none;
    border-color: #f0c040;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.1);
}

.dynamic-search-input::placeholder {
    color: #5a647e;
}

.dynamic-search-button {
    background: linear-gradient(135deg, #f0c040 0%, #e0b030 100%);
    border: none;
    padding: 0 1.75rem;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.dynamic-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.3);
}

.dynamic-search-button:active {
    transform: translateY(0);
}

.dynamic-search-button.has-term {
    background: linear-gradient(135deg, #f0c040 0%, #d4a020 100%);
    animation: pulse 0.3s ease;
}

.search-button-text {
    font-weight: 700;
}

.search-button-icon {
    font-size: 1rem;
}

/* Search Suggestions */
.search-suggestions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.search-suggestions__title {
    font-size: 0.75rem;
    color: #5a647e;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.search-suggestions__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8892aa;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-tag:hover {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.15) 0%, rgba(240, 192, 64, 0.08) 100%);
    border-color: rgba(240, 192, 64, 0.4);
    color: #f0c040;
    transform: translateY(-2px) scale(1.02);
}

.search-tag:active {
    transform: translateY(0) scale(0.98);
}

/* Recent Searches */
.recent-searches {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-searches__title {
    font-size: 0.75rem;
    color: #5a647e;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.recent-searches__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.recent-search-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8892aa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recent-search-item::before {
    content: "🕐";
    font-size: 0.75rem;
    opacity: 0.7;
}

.recent-search-item:hover {
    background: rgba(240, 192, 64, 0.1);
    border-color: rgba(240, 192, 64, 0.3);
    color: #f0c040;
    transform: translateX(4px);
}

.clear-recent-searches {
    background: none;
    border: none;
    color: #e8403c;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-recent-searches::before {
    content: "🗑️";
    font-size: 0.75rem;
}

.clear-recent-searches:hover {
    background: rgba(232, 64, 60, 0.1);
    color: #ff6b6b;
    transform: scale(1.02);
}

/* --------------------------------------------
   7. Navigation (Desktop)
-------------------------------------------- */
.desktop-nav {
    display: block;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    position: relative;
}

.desktop-nav a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    color: #8892aa;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item a {
    color: #f0c040;
}

.desktop-nav .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 0.25rem;
    display: inline-block;
}

.desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #111520;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.desktop-nav .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav .sub-menu li {
    width: 100%;
}

.desktop-nav .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* --------------------------------------------
   8. Footer Styles
-------------------------------------------- */
.site-footer {
    background: #0c0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4rem;
}

.site-footer__top {
    padding: 3rem 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1320px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #5a647e;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    font-size: 0.75rem;
    color: #5a647e;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #f0c040;
}

/* --------------------------------------------
   9. Widgets
-------------------------------------------- */
.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #eceef5;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 0.5rem;
}

.widget a {
    color: #8892aa;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.widget a:hover {
    color: #f0c040;
}

/* --------------------------------------------
   10. Front Page Components
-------------------------------------------- */
/* Ticker */
.fp-ticker {
    background: #e8403c;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.fp-ticker__label {
    font-family: 'Anton', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    background: rgba(0, 0, 0, 0.35);
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.fp-ticker__track {
    overflow: hidden;
    flex: 1;
    height: 100%;
    position: relative;
}

.fp-ticker__inner {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.fp-ticker__item {
    font-size: 13px;
    font-weight: 500;
    padding: 0 28px;
}

.fp-ticker__item strong {
    font-family: 'Anton', sans-serif;
    font-size: 15px;
    letter-spacing: 0.04em;
    margin: 0 4px;
}

.fp-ticker__sep {
    font-size: 8px;
    opacity: 0.5;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Section */
.fp-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fp-hero__body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    width: 100%;
}

.fp-hero__title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(52px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: #eceef5;
    margin-bottom: 24px;
}

.fp-hero__title em {
    font-style: normal;
    color: #f0c040;
}

.fp-hero__sub {
    font-size: 17px;
    line-height: 1.65;
    color: #8892aa;
    max-width: 460px;
    margin-bottom: 36px;
    font-weight: 300;
}

/* Section Styles */
.fp-section {
    padding: 80px 0;
    position: relative;
}

.fp-section--dark {
    background: #0c0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.fp-section__title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0.02em;
    color: #eceef5;
    display: flex;
    align-items: center;
    gap: 16px;
}

.fp-live-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: #e8403c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    vertical-align: middle;
}

/* Match Cards */
.fp-matches-grid {
    display: grid;
    gap: 16px;
}

.fp-matches-grid--live {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fp-match-card {
    background: #111520;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.fp-match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 192, 64, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.fp-match-card--live {
    border-color: rgba(232, 64, 60, 0.25);
    animation: card-pulse 4s ease infinite;
}

@keyframes card-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 64, 60, 0); }
    50% { box-shadow: 0 0 20px 1px rgba(232, 64, 60, 0.08); }
}

/* Buttons */
.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.fp-btn--primary {
    background: #f0c040;
    color: #000;
    box-shadow: 0 4px 24px rgba(240, 192, 64, 0.3);
}

.fp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(240, 192, 64, 0.45);
}

.fp-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #eceef5;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Dots */
.fp-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ce8a0;
}

.fp-dot--pulse {
    animation: dot-pulse 1.4s ease infinite;
    box-shadow: 0 0 0 0 rgba(60, 232, 160, 0.5);
}

@keyframes dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(60, 232, 160, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(60, 232, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(60, 232, 160, 0); }
}

/* --------------------------------------------
   11. Single Post/Page
-------------------------------------------- */
.single-post .entry-header,
.page .entry-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, #0c0f1a 0%, #07090f 100%);
}

.single-post .entry-title,
.page .entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    font-size: 0.75rem;
    color: #5a647e;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 28px;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin: 2rem 0 1rem;
}

.entry-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
}

.entry-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --------------------------------------------
   12. Archive Pages
-------------------------------------------- */
.archive-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, #0c0f1a 0%, #07090f 100%);
}

.archive-title {
    margin-bottom: 0.5rem;
}

.archive-description {
    color: #8892aa;
    max-width: 600px;
    margin: 0 auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.archive-item {
    background: #111520;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.archive-item:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 192, 64, 0.3);
}

.archive-item__thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-item__content {
    padding: 1.25rem;
}

.archive-item__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.archive-item__excerpt {
    font-size: 0.875rem;
    color: #8892aa;
    margin-bottom: 1rem;
}

.archive-item__meta {
    font-size: 0.75rem;
    color: #5a647e;
}

/* --------------------------------------------
   13. Comments
-------------------------------------------- */
.comments-area {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 28px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: #111520;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.75rem;
    color: #5a647e;
    margin-bottom: 0.5rem;
}

.comment-content {
    font-size: 0.875rem;
}

/* --------------------------------------------
   14. Forms & Buttons
-------------------------------------------- */
button,
input[type="submit"],
.fp-btn {
    cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #111520;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #eceef5;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #f0c040;
}

/* --------------------------------------------
   15. Accessibility
-------------------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f0c040;
    clip: auto !important;
    clip-path: none;
    color: #000;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 1rem;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    left: -9999rem;
    top: 0;
    z-index: 999999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* --------------------------------------------
   16. Responsive Design
-------------------------------------------- */
@media (max-width: 1024px) {
    .menu-drawer-toggle {
        display: flex;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .site-header__inner {
        padding: 0.75rem 16px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }
    
    .fp-section {
        padding: 60px 0;
    }
    
    .fp-hero__body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container,
    .wrap,
    .fp-wrap {
        padding: 0 16px;
    }
    
    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 16px;
    }
    
    .footer-menu {
        justify-content: center;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .fp-matches-grid--live {
        grid-template-columns: 1fr;
    }
    
    .search-modal__content {
        padding: 1.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .dynamic-search-button {
        padding: 0.875rem;
        justify-content: center;
    }
    
    .search-suggestions__tags {
        gap: 0.5rem;
    }
    
    .search-tag,
    .recent-search-item {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-logo img {
        max-height: 36px;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .fp-section {
        padding: 40px 0;
    }
    
    .fp-section__title {
        font-size: 1.75rem;
    }
    
    .fp-hero__title {
        font-size: 44px;
    }
}

@media (min-width: 1025px) {
    .menu-drawer-toggle {
        display: none;
    }
    
    .desktop-nav {
        display: block !important;
    }
}

/* --------------------------------------------
   17. Animations
-------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in {
    animation: slideInRight 0.5s ease forwards;
}

/* Critical CSS to prevent FOUC */
.fp-root {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fp-root.loaded {
    opacity: 1;
}