/* =====================================================
   Scheduled Stories / Vorabankündigungen Styles
   ===================================================== */

/* Scheduled Section */
/* Vorab-Band: dunkles, warmes Band mit Glut-Schein – dasselbe Mittel wie
   die Hero-Flächen auf amburiton.de (page-hero-bg). Bewusst in JEDEM
   Theme dunkel, damit das Band als Akzent wirkt und die hellen
   Innenflächen (rgba) überall tragen. */
.scheduled-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background:
        radial-gradient(70% 60% at 50% 0%, rgba(210, 120, 47, 0.22), transparent 65%),
        linear-gradient(160deg, #1d160d 0%, #0d0c09 85%);
    border: 1px solid rgba(236, 228, 211, 0.10);
    border-radius: var(--radius-lg);
    color: var(--on-brand);
}

.scheduled-section .section-title {
    color: var(--on-brand);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scheduled-section .icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.scheduled-stories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.scheduled-card {
    background: rgba(236, 228, 211, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 228, 211, 0.22);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.scheduled-card:hover {
    transform: translateY(-5px);
    background: rgba(236, 228, 211, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scheduled-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(236, 228, 211, 0.18);
    border-radius: 20px;
    font-size: 0.9rem;
}

.date-label {
    opacity: 0.9;
}

.date-value {
    font-weight: 600;
}

.scheduled-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.scheduled-excerpt {
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.scheduled-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.scheduled-meta .category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(236, 228, 211, 0.22);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.scheduled-meta .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.scheduled-meta .tag {
    padding: 0.2rem 0.5rem;
    background: rgba(236, 228, 211, 0.12);
    border-radius: 10px;
    font-size: 0.8rem;
}

.countdown {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem;
    background: rgba(236, 228, 211, 0.22);
    border-radius: 8px;
    animation: countdown-pulse 3s infinite;
}

@keyframes countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-section .section-title {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 1.5rem;
}

.featured-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.featured-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s;
}

.featured-title a:hover {
    color: var(--heading-color, var(--primary-color));
}

.featured-excerpt {
    color: var(--text-light);
    line-height: 1.6;
}

/* Keine Theme-Sonderfälle mehr: das Band ist in jedem Theme dasselbe
   dunkle, warme Band (siehe .scheduled-section oben). */

/* Responsive Design */
@media (max-width: 768px) {
    .scheduled-section {
        padding: 1.5rem;
    }
    
    .scheduled-stories {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .scheduled-section .section-title {
        font-size: 1.25rem;
    }
    
    .scheduled-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .scheduled-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .scheduled-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .countdown {
        font-size: 1rem;
    }
}

/* Animation beim Laden */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scheduled-section {
    animation: slideInFromTop 0.6s ease-out;
}

.scheduled-card {
    animation: slideInFromTop 0.8s ease-out backwards;
}

.scheduled-card:nth-child(2) {
    animation-delay: 0.1s;
}

.scheduled-card:nth-child(3) {
    animation-delay: 0.2s;
}

.scheduled-card:nth-child(4) {
    animation-delay: 0.3s;
}

.scheduled-card:nth-child(5) {
    animation-delay: 0.4s;
}

/* Badge Styles für Admin Status */
.admin-badge-scheduled {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, var(--ember), var(--accent));
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 2s infinite;
}

.status-indicator.scheduled::before {
    background: var(--info);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Tooltip für Veröffentlichungsdatum */
.scheduled-tooltip {
    position: relative;
    cursor: help;
}

.scheduled-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
}

.scheduled-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
    z-index: 1000;
}
/* ---------------------------------------------------------------
   Das Vorab-Band ist in JEDEM Theme dunkel. Überschriften und
   Oberzeilen darin folgen deshalb dem Band, nicht dem Theme –
   sonst stünde im hellen Theme dunkle Schrift auf dunklem Grund.
   --------------------------------------------------------------- */
.scheduled-section .section-title,
.scheduled-section .scheduled-title,
.scheduled-section h2,
.scheduled-section h3 {
    color: var(--on-brand);
}

.scheduled-section .kicker {
    /* Festes Gold statt --accent: der Akzent des hellen Themes wäre
       auf dem dunklen Band zu dunkel. */
    color: #e0a94e;
}
