/*
 * Cinesist Snarkive Hub Styles
 * This file contains styles for the dynamic content sections on Movie and TV Show profiles.
 * It ensures a consistent Cinesist aesthetic for content cards and grid layouts.
 */

/* --- General Section Styling --- */
.snarkive-section {
    background-color: var(--cinesist-dark-grey-lighter);
    border-radius: 15px; /* Rounded corners for sections */
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--cinesist-box-shadow);
    color: var(--cinesist-text-color);
}

.snarkive-section-title {
    color: var(--cinesist-heading-color);
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* --- Cinesist Verdict Section --- */
.cinesist-verdict-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    background-color: var(--cinesist-dark-grey);
    border: 2px solid var(--cinesist-heading-color);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(226, 179, 4, 0.3); /* Gold glow */
}

.cinesist-verdict-box h3 {
    color: var(--cinesist-heading-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.cinesist-verdict-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cinesist-score {
    font-size: 3em;
    font-weight: 900;
    color: var(--cinesist-accent-color); /* Cinesist Red for score */
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.5); /* Red glow for score */
    margin-bottom: 15px;
}

.cinesist-verdict-link {
    display: inline-block;
    background-color: var(--cinesist-accent-color);
    color: var(--cinesist-button-text-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

.cinesist-verdict-link:hover {
    background-color: #ff3333; /* Lighter red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(204, 0, 0, 0.5);
}

/* --- Responsive Grid Layouts (News, Rants, Trailers, Recaps) --- */
.snarkive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive 4-column grid */
    gap: 25px;
    margin-top: 20px;
}

/* --- Content Card Styling (The Oscar-Worthy Glow-Up) --- */
.content-card {
    background-color: var(--cinesist-dark-grey);
    border-radius: 12px;
    overflow: hidden; /* Ensures image corners are rounded */
    box-shadow: var(--cinesist-box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline from card link */
    color: inherit; /* Inherit text color */
    min-height: 350px;
    width: 400px
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.content-card-image {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Cover the area, crop if necessary */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-card-content {
    padding: 15px;
    flex-grow: 1; /* Allow content area to expand */
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--cinesist-heading-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.content-card-excerpt {
    font-size: 0.9em;
    color: var(--cinesist-light-grey);
    line-height: 1.5;
    margin-bottom: 10px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.content-card-meta {
    font-size: 0.8em;
    color: var(--cinesist-text-color);
    opacity: 0.7;
    margin-top: auto; /* Push meta to the bottom */
}

/* --- The Snarkive's Deep Dive (Horizontal Scroll/Slider) --- */
.snarkive-deep-dive-grid {
    display: flex; /* Use flexbox for horizontal layout */
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory; /* Snap to cards */
    gap: 25px;
    padding-bottom: 15px; /* Space for scrollbar */
    margin-top: 20px;
}

.snarkive-deep-dive-grid .content-card {
    flex: 0 0 280px; /* Fixed width for cards in deep dive, adjust as needed */
    scroll-snap-align: start;
    min-height: 380px; /* Slightly taller for deep dive if needed */
}

/* Hide scrollbar for a cleaner look (optional) */
.snarkive-deep-dive-grid::-webkit-scrollbar {
    height: 8px;
}

.snarkive-deep-dive-grid::-webkit-scrollbar-thumb {
    background-color: var(--cinesist-heading-color);
    border-radius: 10px;
}

.snarkive-deep-dive-grid::-webkit-scrollbar-track {
    background-color: var(--cinesist-dark-grey);
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .snarkive-section {
        padding: 25px;
    }
    .snarkive-section-title {
        font-size: 2em;
    }
    .snarkive-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .snarkive-deep-dive-grid .content-card {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .snarkive-section {
        padding: 20px;
    }
    .snarkive-section-title {
        font-size: 1.8em;
    }
    .snarkive-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 2-3 columns on tablet */
    }
    .snarkive-deep-dive-grid .content-card {
        flex: 0 0 220px;
    }
    .cinesist-verdict-box h3 {
        font-size: 1.5em;
    }
    .cinesist-score {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .snarkive-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    .snarkive-section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .snarkive-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .snarkive-deep-dive-grid {
        padding-bottom: 10px;
    }
    .snarkive-deep-dive-grid .content-card {
        flex: 0 0 90%; /* Almost full width on mobile for slider effect */
        max-width: 300px; /* Cap max width for very large phones */
    }
    .cinesist-verdict-box {
        padding: 15px;
    }
    .cinesist-verdict-text {
        font-size: 1em;
    }
    .cinesist-verdict-link {
        padding: 10px 20px;
    }
    .content-card-image {
        height: 180px;
    }
    .content-card-title {
        font-size: 1.1em;
    }
    .content-card-excerpt {
        font-size: 0.85em;
    }
}
/*
 * Add these rules to your snarkive-hub.css file.
 * These styles ensure the dynamic content sections (Verdict, News/Rants, Trailers, Deep Dive)
 * have a consistent maximum width and are centered, aligning them visually with your main content.
 */

/* Apply max-width and centering to all snarkive sections */
.snarkive-section {
    max-width: 1200px; /* Adjust this value to match your main content width or desired max width */
    margin: 30px auto; /* Adds vertical spacing and centers the section */
    padding: 20px; /* Add some internal padding */
    background-color: var(--cinesist-dark-grey-lighter); /* Optional: give it a subtle background */
    border-radius: 8px; /* Rounded corners for the section box */
    box-shadow: var(--cinesist-box-shadow); /* Subtle shadow for depth */
}

/* Ensure the grids within these sections also respect responsive behavior */
.snarkive-grid,
.snarkive-deep-dive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid columns */
    gap: 25px; /* Space between grid items */
    margin-top: 20px; /* Space above the grid */
}

/* Style for the content cards within the grids */
.snarkive-content-card {
    background-color: var(--cinesist-dark-grey); /* Darker background for cards */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Ensures image corners are rounded with card */
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline from links */
    color: var(--cinesist-text-color); /* Ensure text color is readable */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
}

.snarkive-content-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Enhanced shadow on hover */
}

.snarkive-content-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-top-left-radius: 8px; /* Match card border radius */
    border-top-right-radius: 8px; /* Match card border radius */
}

.snarkive-content-card-info {
    padding: 15px;
    flex-grow: 1; /* Allows info section to expand */
    display: flex;
    flex-direction: column;
}

.snarkive-content-card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--cinesist-heading-color); /* Cinesist Gold for titles */
}

.snarkive-content-card-meta {
    font-size: 0.85em;
    color: var(--cinesist-light-grey);
    margin-bottom: 10px;
}

.snarkive-content-card-excerpt {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows excerpt to take up available space */
}

/* Style for the "No Content" messages */
.snarkive-section.no-content {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--cinesist-border-color); /* Dashed border for empty state */
    background-color: var(--cinesist-dark-grey-lighter);
}

.snarkive-section.no-content .snarkive-section-title {
    color: var(--cinesist-accent-color); /* Red for attention */
    margin-bottom: 15px;
}

.snarkive-section.no-content p {
    color: var(--cinesist-light-grey);
    font-style: italic;
    max-width: 700px; /* Keep message from stretching too wide */
    margin: 0 auto;
}

/* Specific styling for Cinesist Verdict Box */
.cinesist-verdict-box {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    text-align: center;
    padding: 30px;
    background-color: var(--cinesist-dark-grey-lighter);
    border: 2px solid var(--cinesist-heading-color); /* Gold border */
    border-radius: 10px;
    box-shadow: var(--cinesist-box-shadow);
}

.cinesist-verdict-box .snarkive-section-title {
    color: var(--cinesist-heading-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.cinesist-verdict-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--cinesist-text-color);
    margin-bottom: 20px;
    max-width: 800px; /* Keep verdict text from stretching too wide */
}

.cinesist-score {
    font-size: 3em;
    font-weight: bold;
    color: var(--cinesist-accent-color); /* Cinesist Red for score */
    margin-bottom: 20px;
    border: 3px solid var(--cinesist-accent-color);
    border-radius: 50%; /* Circular score display */
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cinesist-dark-grey);
}

.cinesist-verdict-link {
    display: inline-block;
    background-color: var(--cinesist-accent-color);
    color: var(--cinesist-button-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cinesist-verdict-link:hover {
    background-color: darken(var(--cinesist-accent-color), 10%); /* Darken on hover */
    transform: translateY(-2px);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .snarkive-section {
        margin: 20px auto;
        padding: 15px;
    }

    .snarkive-grid,
    .snarkive-deep-dive-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller cards on mobile */
        gap: 15px;
    }

    .snarkive-content-card img {
        height: 150px; /* Adjust image height for smaller cards */
    }

    .snarkive-content-card-title {
        font-size: 1.1em;
    }

    .cinesist-verdict-box {
        padding: 20px;
    }

    .cinesist-verdict-box .snarkive-section-title {
        font-size: 1.5em;
    }

    .cinesist-score {
        font-size: 2.5em;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .snarkive-section {
        padding: 10px;
    }

    .snarkive-grid,
    .snarkive-deep-dive-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .cinesist-verdict-box .snarkive-section-title {
        font-size: 1.3em;
    }

    .cinesist-verdict-text {
        font-size: 1em;
    }
}

