﻿/**
 * GreatComm Frontend-Styling
 * Design für Bibelverse, Lesepläne und responsive Medien
 */

/* ==========================================================================
   1. Zufälliger Bibelvers [random_verse]
   ========================================================================== */
.gc-verse {
    position: relative;
    background: #ffffff;
    border-left: 5px solid #1a73e8; /* Modernes Blau */
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    line-height: 1.7;
    font-family: "Georgia", serif; /* Schöne Serifenschrift für Zitate */
    color: #202124;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Stilvolles Anführungszeichen im Hintergrund */
.gc-verse::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 5rem;
    color: rgba(26, 123, 232, 0.1);
    font-family: sans-serif;
    line-height: 1;
}

.gc-verse strong {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #5f6368;
    text-align: right;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   2. Täglicher Leseplan [daily_reading]
   ========================================================================== */
.gc-reading {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gc-reading h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    color: #1a73e8;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fließtext des Bibelkapitels */
.gc-reading-text {
    font-family: "Georgia", serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #3c4043;
    text-align: justify;
}

/* Die hochgestellten Versnummern */
.gc-reading-text sup {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: #1a73e8;
    margin-right: 2px;
    margin-left: 4px;
    vertical-align: super;
}


/* ==========================================================================
   3. Responsive Video-Container für Predigten [sermon]
   ========================================================================== */
.gc-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #000;
}

.gc-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ==========================================================================
   4. Dark Mode Support (Optional für kompatible Themes)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    .gc-verse, .gc-reading {
        background: #2d2e30;
        border-color: #3c4043;
        color: #e8eaed;
    }
    .gc-verse::before {
        color: rgba(26, 123, 232, 0.2);
    }
    .gc-verse strong, .gc-reading-text {
        color: #bdc1c6;
    }
    .gc-reading h3 {
        border-color: #3c4043;
    }
/* ==========================================================================
   5. Verknüpfte Andachten-Box unter Predigten
   ========================================================================== */
.gc-related-devotion-box {
    background: #f4f6f9;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.gc-related-devotion-box h4 {
    margin: 0 0 0.5rem 0;
    color: #5f6368;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-related-devotion-box h3 {
    margin: 0 0 1.2rem 0;
    color: #1a73e8;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Button-Styling */
.gc-devotion-btn {
    display: inline-block;
    background: #1a73e8;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease-in-out;
}

.gc-devotion-btn:hover {
    background: #1557b0;
}

/* Dark Mode Ergänzung */
@media (prefers-color-scheme: dark) {
    .gc-related-devotion-box {
        background: #202124;
        border-color: #3c4043;
    }
    .gc-related-devotion-box h4 {
        color: #9aa0a6;
    }
}
/* ==========================================================================
   6. Predigt Metadaten (Sprecher/Prediger)
   ========================================================================== */
.gc-sermon-meta {
    margin: 1rem 0 1.5rem 0;
    font-size: 0.95rem;
    color: #5f6368;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gc-sermon-meta a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.gc-sermon-meta a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .gc-sermon-meta {
        color: #9aa0a6;
    }
}
/* ==========================================================================
   7. Zielgruppen-Badges für Andachten
   ========================================================================== */
.gc-audience-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.gc-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e8f0fe;
    color: #1a73e8 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    transition: transform 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.gc-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Optionale Farb-Variationen basierend auf dem Slug */
.gc-badge-kinder, .gc-badge-children {
    background: #e6f9ed;
    color: #137333 !important;
}

.gc-badge-jugend, .gc-badge-youth {
    background: #fef7e0;
    color: #b06000 !important;
}

.gc-badge-familie, .gc-badge-family {
    background: #fce8e6;
    color: #c5221f !important;
}

}