/* ========================================
   COLISEUM STUDIOS — DEV BLOG PAGE
   Matches landing page look & feel
   ======================================== */

/* =============================================
   STICKY NAVIGATION
   ============================================= */
.devblog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 252, 0, 0.12);
    transition: background 0.3s ease;
}

.devblog-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 36px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: #c8c8c8;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #7CFC00;
}

.nav-link.active {
    color: #7CFC00;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, #7CFC00 50%, transparent 100%);
    box-shadow: 0 0 6px rgba(124, 252, 0, 0.5);
}

/* =============================================
   HERO BANNER
   ============================================= */
.devblog-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px; /* account for sticky nav */
}

.devblog-hero-bg {
    position: absolute;
    inset: -40px;
    background: url('../images/hero-bg.jpg?v=5') center center / cover no-repeat;
    z-index: 0;
}

.devblog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(8, 8, 16, 0.75) 0%,
            rgba(8, 8, 16, 0.40) 30%,
            rgba(8, 8, 16, 0.40) 70%,
            rgba(8, 8, 16, 0.85) 100%),
        radial-gradient(ellipse 70% 65% at 50% 50%,
            transparent 0%,
            rgba(8, 8, 16, 0.50) 100%);
}

.devblog-hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 80px 20px 60px;
    animation: fadeIn 1.2s ease-out;
}

.devblog-hero-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(0.72rem, 1.6vw, 0.92rem);
    letter-spacing: 0.28em;
    color: rgba(200, 200, 200, 0.7);
    margin-top: 14px;
    text-transform: uppercase;
}

.devblog-hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 3;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(8, 8, 16, 0.5) 50%,
        #080810 100%);
    pointer-events: none;
}

/* Film grain on hero */
.devblog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* =============================================
   BLOG POSTS SECTION
   ============================================= */
.devblog-posts-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
}

.devblog-posts-bg {
    position: absolute;
    inset: 0;
    background: url('../images/pirate-scene.jpg?v=4') center center / cover no-repeat;
    z-index: 0;
    opacity: 0.08;
}

.devblog-posts-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            #080810 0%,
            rgba(8, 8, 16, 0.94) 5%,
            rgba(8, 8, 16, 0.90) 50%,
            rgba(8, 8, 16, 0.94) 95%,
            #080810 100%);
}

.devblog-posts-content {
    position: relative;
    z-index: 5;
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* =============================================
   INDIVIDUAL BLOG POST CARD
   ============================================= */
.blog-post {
    display: flex;
    background: rgba(14, 14, 28, 0.65);
    border: 1px solid rgba(124, 252, 0, 0.18);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(24px);
}

.blog-post.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-post:hover {
    border-color: rgba(124, 252, 0, 0.45);
    box-shadow: 0 4px 30px rgba(124, 252, 0, 0.08);
    transform: translateY(-2px);
}

/* Image — left side */
.blog-post-image-wrap {
    flex-shrink: 0;
    width: 320px;
    min-height: 220px;
    overflow: hidden;
}

.blog-post-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image-wrap img {
    transform: scale(1.05);
}

/* Body — right side */
.blog-post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 30px;
}

/* Meta line */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.blog-post-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: #7CFC00;
    text-transform: uppercase;
}

.blog-post-divider {
    color: rgba(124, 252, 0, 0.35);
    font-size: 0.7rem;
}

.blog-post-category {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: rgba(200, 200, 200, 0.6);
    text-transform: uppercase;
}

/* Title */
.blog-post-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: #E8F0C6;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Excerpt */
.blog-post-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(0.76rem, 1.4vw, 0.86rem);
    line-height: 1.65;
    color: rgba(220, 220, 220, 0.78);
    margin-bottom: 18px;
}

/* Read More link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #7CFC00;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s, gap 0.3s;
}

.blog-read-more:hover {
    color: #AEFF60;
    gap: 10px;
}

.blog-read-more i {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.blog-read-more:hover i {
    transform: translateX(2px);
}

/* =============================================
   FOOTER SECTION (Devblog page)
   ============================================= */
.devblog-footer-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 50px 20px 55px;
}

.devblog-footer-bg {
    position: absolute;
    inset: 0;
    background: url('../images/pirate-scene.jpg?v=4') center bottom / cover no-repeat;
    z-index: 0;
    opacity: 0.10;
}

.devblog-footer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            #080810 0%,
            rgba(8, 8, 16, 0.92) 15%,
            rgba(8, 8, 16, 0.88) 85%,
            #080810 100%);
}

.devblog-footer-content {
    position: relative;
    z-index: 5;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

/* =============================================
   RESPONSIVE — DEVBLOG
   ============================================= */

/* Tablets and below — stack image on top */
@media (max-width: 768px) {
    .devblog-hero {
        min-height: 280px;
    }

    .devblog-hero-content {
        padding: 70px 20px 50px;
    }

    .blog-post {
        flex-direction: column;
    }

    .blog-post-image-wrap {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 8;
    }

    .blog-post-body {
        padding: 22px 20px;
    }

    .devblog-posts-content {
        padding: 40px 16px 50px;
        gap: 30px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .devblog-nav-inner {
        padding: 10px 16px;
    }

    .nav-logo {
        height: 28px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.68rem;
    }

    .devblog-hero {
        min-height: 240px;
    }

    .devblog-hero-content {
        padding: 60px 16px 40px;
    }

    .blog-post-image-wrap {
        aspect-ratio: 16 / 9;
    }

    .blog-post-body {
        padding: 18px 16px;
    }

    .blog-post-title {
        font-size: 1rem;
    }

    .devblog-posts-content {
        padding: 30px 14px 40px;
        gap: 24px;
    }
}
