/*
 * Cinesist Snarkive Hub Styles - OVERHAULED & UPDATED
 * This file contains unified styles for The Snarkive hub page and its content cards.
 */

/* --- Snarkive Hero Section --- */
.snarkive-hero {
    background-color: var(--cinesist-dark-grey);
    padding: 20px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px; /* Rounded bottom corners */
    box-shadow: var(--cinesist-box-shadow);
    margin-bottom: 40px;
    color: var(--cinesist-text-color);
}

.snarkive-title {
    font-family: var(--cinesist-heading-font);
    font-size: 3.5em;
    color: var(--cinesist-heading-color);
    margin-bottom: 10px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
}

.snarkive-icon {
    margin-left: 10px;
    color: var(--cinesist-accent-color); /* Red icon */
}

.snarkive-tagline {
    font-family: var(--cinesist-body-font);
    font-size: 1.2em;
    color: var(--cinesist-light-grey);
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

.snarkive-search-bar .search-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.snarkive-search-bar .search-field {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid var(--cinesist-heading-color);
    border-radius: 8px 0 0 8px;
    background-color: var(--cinesist-dark-grey-lighter);
    color: var(--cinesist-text-color);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.snarkive-search-bar .search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.snarkive-search-bar .search-field:focus {
    border-color: var(--cinesist-accent-color);
}

.snarkive-search-bar .search-submit {
    background-color: var(--cinesist-accent-color);
    color: var(--cinesist-button-text-color);
    border: none;
    padding: 12px 25px;
    border-radius: 0 8px 8px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.snarkive-search-bar .search-submit:hover {
    background-color: #ff3333; /* Lighter red on hover */
    transform: translateY(-2px);
}

/* --- General Section Styling (for all content sections below hero) --- */
.snarkive-section {
    background-color: var(--cinesist-dark-grey-lighter);
    border-radius: 15px;
    padding: 40px;
    margin: 0 auto 40px auto !important; /* Centered with bottom margin */
    box-shadow: var(--cinesist-box-shadow);
    color: var(--cinesist-text-color);
    max-width: 1200px; /* Max width for consistency */
}

.snarkive-section-title {
    font-family: var(--cinesist-heading-font);
    font-size: 2.5em;
    color: var(--cinesist-heading-color);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- CPT Card Grid (Movie Vault, TV Vault, etc.) --- */
.cpt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    gap: 30px;
    margin-top: 20px;
}

.cpt-card {
    background-color: var(--cinesist-dark-grey);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    min-height: 280px; /* Ensure consistent card height */
}

.cpt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cpt-icon {
    font-size: 3.5em;
    color: var(--cinesist-accent-color); /* Red icons */
    margin-bottom: 15px;
    transition: color 0.2s ease;
}

.cpt-card:hover .cpt-icon {
    color: var(--cinesist-heading-color); /* Gold on hover */
}

.cpt-name {
    font-family: var(--cinesist-heading-font);
    font-size: 1.8em;
    color: var(--cinesist-heading-color);
    margin-bottom: 10px;
}

.cpt-description {
    font-size: 0.95em;
    color: var(--cinesist-light-grey);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.cpt-button {
    display: inline-block;
    background-color: var(--cinesist-heading-color); /* Gold button */
    color: var(--cinesist-button-text-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(226, 179, 4, 0.3);
}

.cpt-button:hover {
    background-color: #f0c94b; /* Lighter gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 179, 4, 0.5);
}

/* --- Snarkive Profile Card (for Movies/TV Shows/People/Companies/Platforms) --- */
.snarkive-profile-card {
    background-color: var(--cinesist-dark-grey);
    border-radius: 12px;
    overflow: hidden; /* Ensures image corners are rounded */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline from card itself */
    color: inherit; /* Inherit text color */
    min-height: 420px; /* Ensure consistent height for visual grids */
}

.snarkive-profile-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); /* Enhanced shadow on hover */
}

.snarkive-profile-card-image-wrap {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed height for images */
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.snarkive-profile-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if necessary */
    display: block;
    transition: transform 0.3s ease; /* Smooth zoom on hover */
}

.snarkive-profile-card-image-link:hover .snarkive-profile-card-image {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.snarkive-profile-card-content {
    padding: 15px;
    flex-grow: 1; /* Allow content area to expand */
    display: flex;
    flex-direction: column;
}

.snarkive-profile-card-title {
    font-family: var(--cinesist-heading-font);
    font-size: 1.4em;
    font-weight: 700;
    color: var(--cinesist-heading-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.snarkive-profile-card-title a {
    color: var(--cinesist-heading-color); /* Gold for title link */
    text-decoration: none;
    transition: color 0.2s ease;
}

.snarkive-profile-card-title a:hover {
    color: var(--cinesist-accent-color); /* Red on title hover */
    text-decoration: underline;
}

.snarkive-profile-card-genres {
    font-size: 0.9em;
    color: var(--cinesist-light-grey);
    margin-bottom: 10px;
}

.snarkive-profile-card-genres strong {
    color: var(--cinesist-text-color);
    margin-right: 5px;
}

.snarkive-profile-card-genres a {
    color: var(--cinesist-accent-color); /* Red for genre links */
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.snarkive-profile-card-genres a:hover {
    color: var(--cinesist-heading-color); /* Gold on genre hover */
    text-decoration: underline;
}

.snarkive-profile-card-excerpt {
    font-size: 0.9em;
    color: var(--cinesist-text-color);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.snarkive-profile-card-footer {
    font-size: 0.9em;
    text-align: right;
    margin-top: auto; /* Push footer to the bottom */
}

.snarkive-profile-card-read-more {
    color: var(--cinesist-accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.snarkive-profile-card-read-more:hover {
    color: var(--cinesist-heading-color);
    text-decoration: underline;
}

/* --- General Grid Styling (used by Snarkive sections) --- */
.cinesist-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 "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;
}
/* --- 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);
}
/* 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);
}
.certification {
    border: 2px solid var(--cinesist-light-grey); /* Creates a thin grey border of 2 pixels */
    padding: .06em 4px .15em; /* Adds space between the border and the "Certification" */
    height: 30px; /* Sets the height of the box */
    align-items: center; /* Centers the content vertically within the box */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .snarkive-hero {
        padding: 50px 20px;
    }
    .snarkive-title {
        font-size: 3em;
    }
    .snarkive-tagline {
        font-size: 1.1em;
    }
    .snarkive-section {
        padding: 30px;
    }
    .snarkive-section-title {
        font-size: 2.2em;
    }
    .cpt-card-grid,
    .cinesist-grid { /* Apply to both grid types */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .cpt-card {
        min-height: 260px;
    }
    .cpt-icon {
        font-size: 3em;
    }
    .cpt-name {
        font-size: 1.6em;
    }
    .snarkive-profile-card {
        min-height: 400px;
    }
    .snarkive-profile-card-image-wrap {
        height: 220px;
    }
    .snarkive-profile-card-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .snarkive-hero {
        padding: 40px 15px;
    }
    .snarkive-title {
        font-size: 2.5em;
    }
    .snarkive-tagline {
        font-size: 1em;
    }
    .snarkive-search-bar .search-field,
    .snarkive-search-bar .search-submit {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .snarkive-section {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    .snarkive-section-title {
        font-size: 2em;
    }
    .cpt-card-grid,
    .cinesist-grid { /* Apply to both grid types */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2-3 columns on tablet */
        gap: 20px;
    }
    .cpt-card {
        min-height: 240px;
        padding: 20px;
    }
    .cpt-icon {
        font-size: 3em;
    }
    .cpt-name {
        font-size: 1.5em;
    }
    .snarkive-profile-card {
        min-height: 380px;
    }
    .snarkive-profile-card-image-wrap {
        height: 180px;
    }
    .snarkive-profile-card-title {
        font-size: 1.2em;
    }
    .snarkive-profile-card-genres,
    .snarkive-profile-card-excerpt {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .snarkive-hero {
        padding: 30px 10px;
    }
    .snarkive-title {
        font-size: 2em;
    }
    .snarkive-tagline {
        font-size: 0.9em;
    }
    .snarkive-search-bar .search-form {
        flex-direction: column;
        align-items: center;
    }
    .snarkive-search-bar .search-field {
        border-radius: 8px;
        margin-bottom: 10px;
        width: 100%; /* Full width when stacked */
        max-width: 300px; /* Cap for very large phones */
    }
    .snarkive-search-bar .search-submit {
        border-radius: 8px;
        width: 100%; /* Full width when stacked */
        max-width: 300px; /* Cap for very large phones */
    }
    .snarkive-section {
        padding: 20px 10px;
        margin-bottom: 25px;
    }
    .snarkive-section-title {
        font-size: 1.8em;
    }
    .cpt-card-grid,
    .cinesist-grid { /* Apply to both grid types */
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 15px;
    }
    .cpt-card {
        min-height: auto; /* Allow height to adjust */
        padding: 15px;
    }
    .cpt-icon {
        font-size: 2.5em;
    }
    .cpt-name {
        font-size: 1.4em;
    }
    .snarkive-profile-card {
        min-height: auto; /* Allow height to adjust */
    }
    .snarkive-profile-card-image-wrap {
        height: 150px;
    }
    .snarkive-profile-card-title {
        font-size: 1.1em;
    }
    .snarkive-profile-card-excerpt {
        font-size: 0.8em;
    }
}
