/*
 Theme Name:   FORtop Child
 Description:  Modernisiertes Child-Theme für FORtop Radio
 Author:       AI Assistant
 Template:     deejay
 Version:      1.0.0
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --fortop-primary: #b00000;
    --fortop-primary-dark: #800000;
    --fortop-secondary: #1a1a2e;
    --fortop-accent: #ff6b6b;
    --fortop-dark: #0f0f23;
    --fortop-light: #f8f9fa;
    --fortop-gradient: linear-gradient(135deg, #b00000 0%, #1a1a2e 100%);
    --fortop-card-bg: rgba(26, 26, 46, 0.95);
    --fortop-text: #e0e0e0;
    --fortop-text-muted: #a0a0a0;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--fortop-dark);
    color: var(--fortop-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Site Header */
.site-header {
    background: var(--fortop-gradient) !important;
    min-height: auto !important;
    padding: 1.5rem 3rem !important;
    text-align: center;
}

/* Hide ALL duplicates and descriptions */
.responsive-logo,
.responsive-site-title,
.responsive-site-description,
.site-branding,
.site-description {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Full width wrapper */
#page {
    width: 100%;
}

/* Header layout - stacked */
.site-header {
    background: var(--fortop-gradient) !important;
    min-height: auto !important;
    padding: 1.5rem 0 !important;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem;
    width: 100% !important;
    box-sizing: border-box !important;
}

.site-header .custom-logo-link img {
    width: auto !important;
    max-height: 120px !important;
}

.site-header .widget-area {
    width: 100%;
    max-width: 600px;
}

.site-header .widget-area iframe {
    width: 100% !important;
    max-width: 600px;
}

/* Main wrapper - centers ALL content */
.main-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.news-ticker-content {
    display: flex !important;
    animation: ticker 30s linear infinite;
    width: max-content;
}

.news-ticker-content a {
    color: var(--fortop-light);
    text-decoration: none;
    padding: 0 3rem;
    font-size: 1.1rem;
}

.news-ticker {
    overflow: hidden;
    width: 100%;
}

.news-ticker-content {
    display: flex !important;
    animation: ticker 30s linear infinite;
    width: max-content;
}

.news-ticker-content a {
    color: var(--fortop-light);
    text-decoration: none;
    padding: 0 3rem;
    font-size: 1.1rem;
    border-right: 1px solid var(--fortop-primary);
}

.news-ticker {
    overflow: hidden;
}

.news-ticker-content {
    display: flex !important;
    animation: ticker 30s linear infinite;
}

.news-ticker-content a {
    color: var(--fortop-light);
    text-decoration: none;
    padding: 0 3rem;
    font-size: 1.1rem;
    border-right: 1px solid var(--fortop-primary);
    white-space: nowrap;
}

.news-ticker-content {
    display: flex !important;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
}

.news-ticker-content a {
    color: var(--fortop-light);
    text-decoration: none;
    padding: 0 3rem;
    font-size: 1.1rem;
    border-right: 1px solid var(--fortop-primary);
    display: inline-block !important;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* Navigation */
.main-navigation {
    background: var(--fortop-secondary);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--fortop-primary);
}

.main-navigation ul {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 700px;
}

#top-bar-menu li:first-child {
    margin-left: 0;
}

#top-bar-menu li:last-child {
    margin-left: auto;
}

.main-navigation a {
    color: var(--fortop-light) !important;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: var(--fortop-primary);
    color: #fff !important;
}

/* Main Content */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--fortop-dark);
}

/* Hero Section */
.hero-section {
    background: var(--fortop-gradient);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(176, 0, 0, 0.3);
}

/* Navigation */
.main-navigation {
    background: var(--fortop-secondary);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--fortop-primary);
    text-align: center;
}

.main-navigation ul {
    display: inline-flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.hero-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    max-width: 100%;
}

.main-content .radio-player-card {
    max-width: 700px;
    margin-left: 0;
}

/* Radio Player Card */
.radio-player-card {
    background: var(--fortop-card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.radio-player-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--fortop-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.player-container {
    position: relative;
    width: 100%;
    min-height: 150px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.player-container iframe {
    width: 100%;
    height: 150px;
    border: none;
}

/* Info Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Widget Cards */
.widget-card {
    background: var(--fortop-card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.widget-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--fortop-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--fortop-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Weather Widget */
.weather-widget {
    text-align: center;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 3rem;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.weather-desc {
    color: var(--fortop-text-muted);
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.weather-detail {
    background: rgba(255,255,255,0.05);
    padding: 0.5rem;
    border-radius: 8px;
}

/* Clock Widget */
.clock-widget {
    text-align: center;
}

.current-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--fortop-accent);
    font-family: 'Poppins', monospace;
}

.current-date {
    color: var(--fortop-text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* News Widget */
.news-widget {
    max-height: 400px;
    overflow-y: auto;
}

.news-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: rgba(255,255,255,0.05);
}

.news-item a {
    color: var(--fortop-light);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.news-item a:hover {
    color: var(--fortop-accent);
}

.news-date {
    font-size: 0.8rem;
    color: var(--fortop-text-muted);
}

/* Scrollbar Styling */
.news-widget::-webkit-scrollbar {
    width: 6px;
}

.news-widget::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.news-widget::-webkit-scrollbar-thumb {
    background: var(--fortop-primary);
    border-radius: 3px;
}

/* Footer */
.site-footer {
    background: var(--fortop-secondary);
    padding: 2rem;
    margin-top: 2rem;
    border-top: 3px solid var(--fortop-primary);
}

.site-footer a {
    color: var(--fortop-text-muted) !important;
}

.site-footer a:hover {
    color: var(--fortop-accent) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .current-time {
        font-size: 2rem;
    }
    
    .weather-temp {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff4444;
    font-weight: 600;
}

.live-indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 2rem auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--fortop-primary);
    border-radius: 8px;
    background: var(--fortop-secondary);
    color: #fff;
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--fortop-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--fortop-primary-dark);
}

/* Platform Links */
.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.platform-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--fortop-secondary);
    color: var(--fortop-light) !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.platform-btn:hover {
    background: var(--fortop-primary);
    color: #fff !important;
    transform: translateY(-2px);
}

/* News Ticker - full width */
.news-ticker-wrapper {
    background: var(--fortop-secondary) !important;
    border-top: 2px solid var(--fortop-primary);
    border-bottom: 2px solid var(--fortop-primary);
    padding: 1rem 2rem !important;
    display: flex !important;
    align-items: center;
    overflow: hidden;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ticker-label {
    background: var(--fortop-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    width: calc(100% - 200px);
}

.news-ticker-content {
    display: flex !important;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.news-ticker-content a {
    color: var(--fortop-light);
    text-decoration: none;
    padding: 0 3rem;
    font-size: 1.1rem;
    border-right: 1px solid var(--fortop-primary);
    white-space: nowrap;
}

.news-ticker-content a:hover {
    color: var(--fortop-accent);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.ticker-label {
    background: var(--fortop-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.news-ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.news-ticker-content a {
    color: var(--fortop-light);
    text-decoration: none;
    padding: 0 3rem;
    font-size: 1.1rem;
    border-right: 1px solid var(--fortop-primary);
}

.news-ticker-content a:hover {
    color: var(--fortop-accent);
}

/* Hide FORtop Radio home text */
.site-title a[rel="home"],
.site-title,
.responsive-site-title {
    display: none !important;
}

/* Hide duplicate Home menu item */
#top-bar-menu li.menu-item:first-child {
    display: none;
}

/* Menu ordering */
#top-bar-menu {
    display: flex;
    gap: 1rem;
}

#top-bar-menu li:first-child {
    order: -1;
}

/* Hide mobile menu toggle */
#mobile-menu-toggle {
    display: none !important;
}

/* Fix arrow direction */
.icon-angle-down {
    transform: rotate(180deg) !important;
}

/* Menu ordering - Startseite left, Impressum/Datenschutz right */
#top-bar-menu {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#top-bar-menu li:first-child {
    order: 1;
}

#top-bar-menu li:nth-child(2) {
    order: 3;
}

#top-bar-menu li:nth-child(3) {
    order: 4;
}

#top-bar-menu li:nth-child(4) {
    order: 2;
    margin-left: auto;
}
