/* =========================================
   Design System variables
   ========================================= */
:root {
    /* Colors - Light Mode (Vibrant & Premium Florida Theme) */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    /* Vibrant brand palettes */
    --brand-primary: #ec4899; /* Vibrant Pink/Magenta (Sunset vibe) */
    --brand-secondary: #3b82f6; /* Ocean Blue */
    --brand-accent: #f59e0b; /* Sunshine Yellow/Orange */

    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15);

    --gradient-primary: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));

    /* Fonts */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--brand-secondary);
}

/* =========================================
   Navbar & Glassmorphism
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 60px;
    max-height: 60px;
    max-width: 250px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

/* Nav Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links a {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.social-links a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), transform var(--transition);
}

.social-links a:hover {
    color: var(--brand-primary);
    transform: translateY(-2px);
}

/* =========================================
   Layout Containers
   ========================================= */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - var(--nav-height));
}

/* =========================================
   Hero Section
   ========================================= */
.hero-banner {
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 4rem;
    transition: background-color var(--transition), border-color var(--transition);
}

.hero-banner-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: left;
}

.hero-otter {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition);
    mix-blend-mode: multiply;
}

.hero-otter:hover {
    transform: scale(1.05) rotate(-2deg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-otter {
        max-width: 140px;
    }
}

/* =========================================
   Post Grid structure
   ========================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
}

.post-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition);
}

.post-card:hover .post-card-image {
    transform: scale(1.03);
}

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    position: relative;
    z-index: 2;
}

.post-card-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--brand-primary);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-readmore {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.post-card-readmore::after {
    transition: transform var(--transition);
}

.post-card:hover .post-card-readmore {
    transform: translateX(4px);
}

/* =========================================
   Single Post
   ========================================= */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-tags {
    margin-bottom: 1rem;
}

.tag {
    background: rgba(236, 72, 153, 0.1);
    color: var(--brand-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin: 0 0.25rem;
}

.single-post-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.single-post-meta {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

.single-post-hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    object-fit: cover;
    max-height: 500px;
}

.single-post-body {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post-body p {
    margin-bottom: 1.5rem;
}

.single-post-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.single-post-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
}

.single-post-body img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.single-post-body a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(236, 72, 153, 0.4);
}

.single-post-body a:hover {
    text-decoration-color: var(--brand-primary);
}

/* =========================================
   Share the Magic & Ads
   ========================================= */
.share-magic {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(var(--brand-primary), 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(236, 72, 153, 0.2);
    flex-wrap: wrap;
}

.share-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-right: 0.5rem;
}

.share-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white !important;
    text-decoration: none !important;
    transition: transform var(--transition), box-shadow var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-fb { background: #1877F2; }
.share-x { background: #0f1419; }
.share-pin { background: #E60023; }

.ad-container-placeholder {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
    color: #94a3b8;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================
   Related Articles
   ========================================= */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px dashed var(--border-color);
}

.related-articles h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.related-grid .post-card-image {
    height: 140px;
}

.related-grid .post-card-content {
    padding: 1.25rem;
}

.related-grid .post-card-title {
    font-size: 1.15rem;
    margin-bottom: 0;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin-top: 4rem;
}

.footer-socials {
    margin-bottom: 1rem;
}

.footer-socials a {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-logo {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        z-index: 100;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .social-links {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-banner {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
    }

    .hero-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-otter {
        max-width: 140px;
    }

    .page-container {
        padding: 1rem;
    }

    .post-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: 2.25rem;
    }

    .single-post-hero-image img {
        max-height: 350px;
        margin-bottom: 2rem;
    }

    .share-magic {
        justify-content: center;
        text-align: center;
    }

    .share-text {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 40px;
        max-width: 180px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .single-post-title {
        font-size: 1.75rem;
    }

    .single-post-body {
        font-size: 1rem;
    }
}
