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

/* Scheduled Section */
.scheduled-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.scheduled-section .section-title {
    color: white;
    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(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.scheduled-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    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(255, 255, 255, 0.2);
    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(255, 255, 255, 0.25);
    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(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.8rem;
}

.countdown {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    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(--text-primary);
    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(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* Dark Theme Anpassungen */
[data-theme="dark"] .scheduled-section {
    background: linear-gradient(135deg, #434343 0%, #1a1a1a 100%);
}

[data-theme="dark"] .scheduled-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .scheduled-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Sepia Theme Anpassungen */
[data-theme="sepia"] .scheduled-section {
    background: linear-gradient(135deg, #8b7355 0%, #5d4e37 100%);
}

/* Ocean Theme Anpassungen */
[data-theme="ocean"] .scheduled-section {
    background: linear-gradient(135deg, #2e3192 0%, #1bffff 100%);
}

/* Forest Theme Anpassungen */
[data-theme="forest"] .scheduled-section {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* 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, #667eea 0%, #764ba2 100%);
    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: #4ade80;
    animation: blink 2s infinite;
}

.status-indicator.scheduled::before {
    background: #fbbf24;
}

@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;
}