/* ==========================================
   NEWS PAGE STYLES
   ========================================== */

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title .title-line {
    display: block;
    transform: rotate(-2deg);
    color: #2B4080; /* dark blue */
    text-transform: uppercase;
}

.hero-title .title-line:nth-child(2) {
    transform: rotate(1deg);
    margin-left: 2rem;
}

/* News Grid Section */
.news-grid-section {
    padding: 60px 20px 100px;
    position: relative;
    z-index: 1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* News Card */
.news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px) rotate(1deg);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.news-card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

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

.news-card:hover .news-card-thumbnail img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 30px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.news-card-date {
    font-weight: 500;
}

.news-card-category {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Category Colors */
.category-live-action {
    background: rgba(255, 107, 107, 0.3); /* coral */
    color: #FF6B6B;
}

.category-animation {
    background: rgba(255, 215, 0, 0.3); /* yellow */
    color: #FFD700;
}

.category-tabletop {
    background: rgba(255, 255, 255, 0.15);
    color: #f2f2f2;
}

.category-ecommerce {
    background: rgba(255, 20, 147, 0.3); /* magenta */
    color: #FF1493;
}

.news-card-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 15px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #2B4080; /* dark blue */
}

.news-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================
   INDIVIDUAL POST STYLES
   ========================================== */

/* Post Hero */
.post-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
}

.post-hero-content {
    max-width: 1200px;
    width: 100%;
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.post-date {
    font-weight: 500;
    opacity: 0.8;
}

.post-category {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    transform: rotate(-1.5deg);
    color: #2B4080; /* dark blue */
}

/* Hero Video Section */
.hero-video-section {
    padding: 0 20px 60px;
    position: relative;
    z-index: 1;
}

.hero-video-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Additional Videos Grid */
.additional-videos-section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.additional-videos-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    transform: rotate(-1deg);
    color: #FFD700; /* yellow */
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.video-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px) rotate(0.5deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.video-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0 0;
    color: #f2f2f2;
}

/* Post Content */
.post-content-section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 50px;
}

.post-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-content a {
    color: #E91E63; /* magenta */
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: #E91E63;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 40px 0 20px;
    transform: rotate(-1deg);
    color: #2B4080; /* dark blue - more readable */
}

/* Post Navigation */
.post-navigation {
    padding: 60px 20px 100px;
    position: relative;
    z-index: 1;
}

.post-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.nav-link {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover {
    transform: translateY(-5px) rotate(1deg);
    border-color: #2B4080;
}

.nav-link-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.nav-link-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #f2f2f2;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    display: inline-block;
    background: rgba(43, 64, 128, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #2B4080;
    border-radius: 50px;
    padding: 15px 40px;
    text-decoration: none;
    color: #2B4080;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-link a:hover {
    background: rgba(43, 64, 128, 0.3);
    transform: translateY(-3px) rotate(-1deg);
}

/* Vertical Video Styling */
.vertical-video-container {
    max-width: 1400px;
    margin: 0 auto 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    height: 800px; /* Fixed height to maintain size */
}

.vertical-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(110, 193, 228, 0.2) 0%,
        rgba(110, 193, 228, 0) 20%,
        rgba(110, 193, 228, 0) 80%,
        rgba(110, 193, 228, 0.2) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

.vertical-video-container .video-embed {
    padding-bottom: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-video-container .video-embed > div {
    width: 450px; /* 9:16 aspect ratio: 800px height / 16 * 9 = 450px width */
    height: 100%;
    padding: 0 !important;
    position: relative !important;
}

/* Vertical Videos Grid (9:16 recipe-style content) */
.vertical-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vertical-grid-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    transition: all 0.3s ease;
}

.vertical-grid-item:hover {
    transform: translateY(-5px) rotate(0.5deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.vertical-grid-embed {
    position: relative;
    padding-bottom: 125%; /* 4:5 crop for grid (full 9:16 = 177% is too tall for grid) */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.vertical-grid-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Compact Plating Grid - narrower 9:16 cards, fits more per row on large screens */
.plating-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}

.plating-grid .video-item-title {
    font-size: 1rem;
    margin: 12px 0 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-title .title-line:nth-child(2) {
        margin-left: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-card-content {
        padding: 25px;
    }

    .news-card-title {
        font-size: 1.5rem;
    }

    /* Post Styles */
    .post-title {
        font-size: 3rem;
    }

    .post-content {
        padding: 30px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-nav-container {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .vertical-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .plating-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vertical-videos-grid {
        grid-template-columns: 1fr;
    }

    .plating-grid {
        grid-template-columns: 1fr;
    }
}
