/*
Theme Name: Happy Birthday Song
Theme URI: https://happybirthdaysong.us.com
Author: Happy Birthday Song
Author URI: https://happybirthdaysong.us.com
Description: A cheerful birthday theme with personalized songs and animated cards.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happy-birthday-song
*/

/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ==========================================================================
   CSS Custom Properties - Birthday Theme
   ========================================================================== */
:root {
    /* Primary Colors - Pink */
    --color-primary: #ff7096;
    --color-primary-dark: #e5638a;
    --color-primary-light: #ff8fa8;

    /* Accent Colors */
    --color-accent-yellow: #FFD93D;
    --color-accent-teal: #4ECDC4;

    /* Background */
    --color-bg-light: #fff8f5;
    --color-bg-white: #ffffff;
    --color-bg-dark: #182030;
    --color-bg-slate-900: #0f172a;

    /* Text Colors */
    --color-text-dark: #0f172a;
    --color-text-medium: #475569;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 3rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 15px -3px rgba(255, 112, 150, 0.2);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Noto Sans', sans-serif;

    /* Container */
    --container-max: 1200px;

    /* Header */
    --header-height: 72px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin: 0 0 var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin: 0 0 var(--space-md);
    color: var(--color-text-medium);
}

.text-primary { color: var(--color-primary); }
.text-teal { color: var(--color-accent-teal); }
.text-yellow { color: var(--color-accent-yellow); }

/* ==========================================================================
   Layout
   ========================================================================== */
.layout-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-wrapper {
    flex: 1;
    padding-top: var(--header-height);
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10000;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

/* Visually Hidden (screen reader only) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 112, 150, 0.08);
    background: rgba(255, 248, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-md) var(--space-lg);
    height: var(--header-height);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {
    .site-header {
        padding: var(--space-md) 10rem;
    }
}

.site-header.is-scrolled {
    background: rgba(255, 248, 245, 0.98);
    box-shadow: 0 4px 20px rgba(255, 112, 150, 0.08);
    border-bottom-color: rgba(255, 112, 150, 0.12);
}

/* Admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.25rem;
    margin: -0.25rem;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: translateY(-1px);
}

.site-logo:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 112, 150, 0.3);
}

.site-logo:focus:not(:focus-visible) {
    box-shadow: none;
}

.site-logo:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 112, 150, 0.3);
}

.site-logo .icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 112, 150, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-logo:hover .icon-wrap {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 6px 16px rgba(255, 112, 150, 0.4);
}

.site-logo .icon-wrap svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-logo .site-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.site-logo:hover .site-title {
    color: var(--color-primary);
}

/* Navigation */
.main-nav {
    display: none;
    flex: 1;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }
}

.main-nav a,
.main-nav .menu-item a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-medium);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav .menu-item a:hover {
    color: var(--color-primary);
    background-color: rgba(255, 112, 150, 0.08);
}

.main-nav a:focus,
.main-nav .menu-item a:focus {
    outline: none;
}

.main-nav a:focus-visible,
.main-nav .menu-item a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.main-nav a.current-menu-item,
.main-nav .menu-item.current-menu-item a {
    color: var(--color-primary);
    background-color: rgba(255, 112, 150, 0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Avatar */
.header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 112, 150, 0.2);
    padding: 2px;
    cursor: pointer;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 112, 150, 0.08);
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
}

.mobile-menu-toggle:hover span {
    background-color: var(--color-primary);
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle span {
        transition: none;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--color-text-dark);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-lg {
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 1rem;
}

.btn-rounded {
    border-radius: var(--radius-lg);
}

/* Header CTA Button */
.btn-header {
    display: none;
    min-width: auto;
    height: 2.5rem;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
}

.btn-header svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

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

.btn-header:focus {
    outline: none;
}

.btn-header:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 3rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 10rem;
    }
}

.hero-section .bg-blur-1 {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-50%) translateX(25%);
    width: 24rem;
    height: 24rem;
    background-color: rgba(255, 112, 150, 0.1);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.hero-section .bg-blur-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(50%) translateX(-25%);
    width: 24rem;
    height: 24rem;
    background-color: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: rgba(255, 217, 61, 0.2);
    color: #ca8a04;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-text-dark);
    margin: 0;
}

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

.hero-description {
    color: var(--color-text-light);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.75;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Search Box */
.search-box-wrap {
    width: 100%;
    max-width: 36rem;
}

.search-box {
    display: flex;
    width: 100%;
    align-items: stretch;
    border-radius: var(--radius-full);
    height: 4rem;
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(255, 112, 150, 0.1);
    border: 1px solid rgba(255, 112, 150, 0.1);
    padding: 0.5rem;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .search-box {
        height: 5rem;
    }
}

.search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 112, 150, 0.2);
}

.search-box .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--color-text-dark);
    padding: 0 1rem;
    font-size: 1rem;
    font-family: var(--font-display);
    outline: none;
}

.search-box input::placeholder {
    color: var(--color-text-muted);
}

.search-box button {
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    padding: 0 2rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-family: var(--font-display);
}

.search-box button:hover {
    background-color: var(--color-primary-dark);
}

.search-hint {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Songs Section
   ========================================================================== */
.songs-section {
    padding: 4rem 1.5rem;
    background-color: white;
}

@media (min-width: 768px) {
    .songs-section {
        padding: 4rem 10rem;
    }
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem 0;
}

.section-header p {
    color: var(--color-text-light);
    font-weight: 500;
    margin: 0;
}

.view-all-link {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

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

.view-all-link:hover {
    text-decoration: underline;
}

/* Song Cards Grid */
.songs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

/* Song Card */
.song-card {
    position: relative;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.song-card:hover {
    box-shadow: var(--shadow-xl);
}

.song-card .thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #e2e8f0;
    overflow: hidden;
}

.song-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.song-card:hover .thumbnail img {
    transform: scale(1.1);
}

.song-card .thumbnail .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.song-card:hover .thumbnail .overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.song-card .play-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.9);
    transition: transform 0.2s;
}

.song-card:hover .play-btn {
    transform: scale(1.1);
}

.song-card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-accent-yellow);
    color: var(--color-text-dark);
    font-size: 0.625rem;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.song-card .card-body {
    padding: 1.5rem;
}

.song-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.song-card .subtitle {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

.song-card .card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-card .views {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent-teal);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.song-card .share-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.song-card .share-btn:hover {
    background-color: rgba(255, 112, 150, 0.2);
    color: var(--color-primary);
}

/* ==========================================================================
   Premium Cards Section
   ========================================================================== */
.premium-section {
    position: relative;
    padding: 6rem 1.5rem;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

@media (min-width: 768px) {
    .premium-section {
        padding: 6rem 10rem;
    }
}

/* Confetti Background */
.confetti-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ff7096 1px, transparent 1px), radial-gradient(#4ECDC4 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.05;
    pointer-events: none;
}

.premium-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.premium-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    order: 2;
}

@media (min-width: 1024px) {
    .premium-content {
        order: 1;
    }
}

.premium-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 112, 150, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin: 0;
}

.premium-title .highlight {
    color: var(--color-accent-teal);
}

.premium-description {
    color: var(--color-text-light);
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-medium);
    font-weight: 600;
}

.features-list .check-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: rgba(78, 205, 196, 0.2);
    color: var(--color-accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .premium-buttons {
        flex-direction: row;
    }
}

/* Card Preview */
.cards-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    order: 1;
}

@media (min-width: 1024px) {
    .cards-preview {
        order: 2;
    }
}

.preview-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    border: 1px solid #f1f5f9;
}

.preview-card-1 {
    position: absolute;
    top: -2.5rem;
    left: 0;
    width: 16rem;
    height: 20rem;
    transform: rotate(-12deg);
    z-index: 10;
}

.preview-card-2 {
    width: 18rem;
    height: 24rem;
    z-index: 20;
}

.preview-card-3 {
    position: absolute;
    bottom: -2.5rem;
    right: 0;
    width: 16rem;
    height: 20rem;
    transform: rotate(8deg);
    z-index: 10;
}

.preview-card .card-image {
    width: 100%;
    border-radius: var(--radius-sm);
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.preview-card-1 .card-image,
.preview-card-3 .card-image {
    height: 12rem;
}

.preview-card-2 .card-image {
    height: 16rem;
}

.preview-card .skeleton {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.preview-card .skeleton.w-75 {
    width: 75%;
}

.preview-card .skeleton.w-50 {
    width: 50%;
    background-color: #f1f5f9;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 3rem 1.5rem;
    background-color: var(--color-accent-teal);
    color: white;
}

@media (min-width: 768px) {
    .stats-section {
        padding: 3rem 10rem;
    }
}

.stats-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

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

.stat-item .number {
    font-size: 2.25rem;
    font-weight: 900;
    display: block;
}

.stat-item .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-slate-900);
    color: var(--color-text-muted);
    padding: 4rem 1.5rem;
    border-top: 1px solid #1e293b;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 10rem;
    }
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.footer-logo-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.footer-logo:focus {
    outline: none;
}

.footer-logo:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.footer-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    transition: color 0.2s ease;
}

.footer-logo:hover .logo-text {
    color: var(--color-primary);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.75;
    margin: 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 150, 0.3);
}

.social-links a:focus {
    outline: none;
}

.social-links a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.social-links a svg {
    flex-shrink: 0;
}

/* Footer Navigation */
.footer-nav h3 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-nav a:focus {
    outline: none;
}

.footer-nav a:focus-visible {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Newsletter */
.footer-newsletter h3 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
}

.footer-newsletter p {
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    background-color: #1e293b;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: white;
    font-family: var(--font-display);
    outline: none;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    min-height: 44px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.newsletter-form button:focus {
    outline: none;
}

.newsletter-form button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.newsletter-form button svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.newsletter-form button:hover svg {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    max-width: var(--container-max);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-links a:focus {
    outline: none;
}

.footer-links a:focus-visible {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    padding: 80px 24px 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-menu a {
    display: block;
    padding: 16px 0;
    color: var(--color-text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-menu a:hover {
    color: var(--color-primary);
}

.mobile-nav-cta {
    display: block;
    text-align: center;
    margin-top: 24px;
}

/* ==========================================================================
   WordPress Content Styles
   ========================================================================== */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .entry-content {
        padding: 4rem 2rem;
    }
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius-lg);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Page/Post Header */
.page-header,
.single-post-header {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1,
.single-post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem 0;
}

.post-meta {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Posts List */
.posts-list {
    padding: 2rem 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .posts-list {
        padding: 4rem 2rem;
    }
}

/* ==========================================================================
   WordPress Core Alignment
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: var(--space-lg);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
