/* 
 * Single Crossmap Review Styles (Christian Editorial Aesthetic)
 * This CSS overrides the global dark theme specifically for single "cm_review" posts.
 */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* Force Light/Editorial Theme on the Body & Content Area */
body.single-cm_review {
    background-color: #faf9f6; /* Off-white/cream for editorial feel */
    color: #2c3e50; /* Deep slate instead of pure black */
    font-family: 'Inter', sans-serif;
}

body.single-cm_review #page,
body.single-cm_review #content {
    background-color: #faf9f6;
}

/* ==========================================================================
   Review Hero Section
   ========================================================================== */
.cm-review-hero {
    padding: 60px 20px;
    background-color: #faf9f6;
    border-bottom: 1px solid #e2dfd6;
}

.cm-review-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.cm-review-hero-content {
    flex: 1;
    text-align: left;
}

.cm-review-featured-image {
    flex: 0 0 35%;
    max-width: 350px;
}

.cm-review-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cm-review-category {
    display: inline-block;
    color: #1a365d; /* Deep navy */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.cm-review-category::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 2px;
    background-color: #E50914; /* Intentional Crossmap Red Accent */
    margin-right: 12px;
    vertical-align: middle;
}

.cm-review-title {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: #1a365d; /* Deep navy */
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.cm-review-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cm-review-meta {
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cm-review-author strong {
    color: #1a365d;
    font-weight: 600;
}

.cm-meta-separator {
    color: #cbd5e0;
}

/* ==========================================================================
   Review Main Content Area
   ========================================================================== */
.cm-review-content-wrapper {
    max-width: 1100px; /* Increased to fit sidebar */
    margin: 60px auto 100px;
    padding: 0 20px;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #2d3748;
}

/* Drop Cap for first paragraph */
.cm-review-content-wrapper .entry-content > p:first-of-type::first-letter {
    font-family: 'Lora', serif;
    font-size: 4.8rem;
    font-weight: 700;
    color: #1a365d;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 8px;
}

.cm-review-content-wrapper p {
    margin-bottom: 1.8em;
}

/* Base Typography */
.cm-review-content-wrapper h2 {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a365d;
    margin: 2.5em 0 1em;
    line-height: 1.3;
}

.cm-review-content-wrapper h3 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2em 0 1em;
}

.cm-review-content-wrapper a {
    color: #E50914; /* Intentional Red */
    text-decoration: none;
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    transition: all 0.2s ease;
}

.cm-review-content-wrapper a:hover {
    border-bottom-color: #E50914;
    color: #c40812;
}

.cm-review-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2.5em 0;
}

/* Editorial Blockquote / Pull-Quote */
.cm-review-content-wrapper blockquote {
    margin: 3.5em auto;
    padding: 2.5em 0;
    background: transparent;
    border-top: 1px solid #cbd5e0;
    border-bottom: 1px solid #cbd5e0;
    border-left: none;
    border-radius: 0;
    font-family: 'Lora', serif;
    font-size: 1.7rem;
    font-style: italic;
    font-weight: 600;
    color: #1a365d;
    text-align: center;
    line-height: 1.5;
    max-width: 90%;
}

/* ==========================================================================
   Listicle Specific Layout overrides
   ========================================================================== */
.cm-layout-listicle .cm-review-content-wrapper {
    max-width: 800px;
}

/* Numbered H2s for listicles */
.cm-layout-listicle .cm-review-content-wrapper h2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2dfd6;
}

.cm-layout-listicle .cm-review-content-wrapper h2 .list-number {
    font-family: 'Lora', serif;
    color: #1a365d;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-top: -5px; /* Alignment tweak */
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .cm-review-hero-inner {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
    }
    
    .cm-review-hero-content {
        text-align: center;
    }

    .cm-review-category::before {
        display: none; /* remove line on mobile */
    }

    .cm-review-meta {
        justify-content: center;
    }

    .cm-review-featured-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .cm-review-content-wrapper {
        margin-top: 40px;
        padding: 0 15px;
        font-size: 1.05rem;
    }
    
    .cm-review-content-wrapper h2 {
        font-size: 1.8rem;
    }

    .cm-review-content-wrapper blockquote {
        font-size: 1.35rem;
        padding: 1.5em 0;
    }
}

/* ==========================================================================
   Editorial Redesign Components
   ========================================================================== */
.cm-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e2dfd6;
    border-bottom: 1px solid #e2dfd6;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.cm-stats-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cm-stat-item {
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cm-stat-item .cm-icon {
    color: #1a365d;
    font-size: 1.1rem;
}
.cm-stat-item.cm-rating {
    font-weight: 700;
    color: #1a365d;
}
.cm-stat-item.cm-rating .cm-icon {
    color: #d69e2e; /* Gold star */
}
.cm-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
}
.cm-btn-action {
    background: transparent;
    border: 1px solid #1a365d;
    color: #1a365d;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.cm-btn-action:hover {
    background: #1a365d;
    color: #fff;
}
.cm-btn-action:hover .cm-icon {
    color: #fff;
}
.cm-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cm-share-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cm-btn-icon {
    background: #e2dfd6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a365d;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}
.cm-btn-icon:hover {
    background: #cbd5e0;
}

/* Database Link */
.cm-database-link-wrapper {
    margin-bottom: 40px;
}
.cm-database-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fdfcfa;
    border: 1px solid #e2dfd6;
    padding: 10px 16px;
    border-radius: 6px;
    color: #1a365d !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border-bottom: 1px solid #e2dfd6 !important;
    transition: all 0.2s ease !important;
}
.cm-database-link:hover {
    border-color: #1a365d !important;
    background: #f7fafc;
    color: #E50914 !important;
}
.cm-database-link .cm-arrow {
    transition: transform 0.2s;
}
.cm-database-link:hover .cm-arrow {
    transform: translateX(4px);
}

/* Body Layout */
.cm-review-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: start;
}
/* Ensure entry-content doesn't overflow */
.cm-review-body .entry-content {
    min-width: 0;
}

/* Editorial Cards (Real Talk / Matrix) */
.cm-editorial-card {
    background: #fff;
    border: 1px solid #e2dfd6;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.cm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.cm-card-icon {
    font-size: 1.5rem;
}
.cm-card-header h3 {
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.3rem !important;
    color: #1a365d !important;
}
.cm-card-body p {
    margin-bottom: 0 !important;
}

/* Matrix Layout */
.cm-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cm-matrix-col {
    padding: 20px;
    border-radius: 6px;
}
.cm-matrix-redemptive {
    background: rgba(214, 158, 46, 0.05);
    border-top: 3px solid #d69e2e;
}
.cm-matrix-caution {
    background: rgba(229, 9, 20, 0.05);
    border-top: 3px solid #E50914;
}
.cm-matrix-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2d3748;
}
.cm-matrix-col ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.95rem;
}
.cm-matrix-col li {
    margin-bottom: 8px;
}

/* Meme Quotes */
.cm-quotes-section {
    margin: 50px 0;
}
.cm-section-title {
    font-family: 'Lora', serif;
    color: #1a365d;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}
.cm-quote-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cm-meme-quote {
    background: #1a365d;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(26,54,93,0.15);
}
.cm-quote-cautionary {
    background: #2d3748;
}
.cm-meme-quote blockquote {
    border: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-size: 1.4rem !important;
    color: #fff !important;
    line-height: 1.4 !important;
}
.cm-btn-share-quote {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    align-self: center;
    transition: all 0.2s;
}
.cm-btn-share-quote:hover {
    background: #fff;
    color: #1a365d;
}

/* Sidebar */
.cm-sidebar-widget {
    background: #fdfcfa;
    border: 1px solid #e2dfd6;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.cm-sidebar-widget h4 {
    font-family: 'Lora', serif;
    color: #1a365d;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2dfd6;
    padding-bottom: 10px;
}
.cm-sidebar-widget p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.6;
}
.cm-sidebar-widget p:last-child {
    margin-bottom: 0;
}
.cm-theme-links, .cm-resource-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cm-theme-links li, .cm-resource-links li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.cm-theme-links a, .cm-resource-links a {
    color: #2d3748;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s;
}
.cm-theme-links a:hover, .cm-resource-links a:hover {
    color: #E50914;
}

/* Community Engagement */
.cm-community-engagement {
    margin-top: 60px;
    padding: 50px 0;
    border-top: 2px solid #e2dfd6;
}
.cm-engagement-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cm-engagement-inner h3 {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    color: #1a365d;
    margin: 0 0 10px;
}
.cm-engagement-inner > p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.cm-engagement-actions {
    background: #fff;
    border: 1px solid #e2dfd6;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.cm-survey-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0 0 20px;
}
.cm-survey-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}
.cm-btn-survey {
    background: #f8f9fa;
    border: 1px solid #cbd5e0;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}
.cm-btn-survey:hover {
    border-color: #1a365d;
    background: #fdfcfa;
}
.cm-comment-cta {
    border-top: 1px solid #e2dfd6;
    padding-top: 25px;
}
.cm-comment-cta p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.cm-btn-primary {
    display: inline-block;
    background: #1a365d;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    border: none !important;
    transition: background 0.2s;
}
.cm-btn-primary:hover {
    background: #2a4365;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .cm-review-body {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .cm-stats-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .cm-matrix-grid {
        grid-template-columns: 1fr;
    }
    .cm-quote-cards {
        grid-template-columns: 1fr;
    }
}
