/*!
Theme Name: Radio Charivari
Theme URI: https://radio-charivari.de
Author: Radio Charivari
Author URI: https://radio-charivari.de
Description: Modernes WordPress-Theme für Radio Charivari Rosenheim
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: radio-charivari
*/

/* FORCE LIGHT MODE */
:root { color-scheme: light !important; }
html { background-color: #FFFFFF !important; color: #333333 !important; }
body { background-color: #FFFFFF !important; color: #333333 !important; background-image: none !important; }

/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FFFFFF !important;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #003169;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

a {
    color: #F39C12;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003169;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    flex: 1;
    margin-bottom: 6rem;
}

/* HEADER */
header {
    background-color: #FFFFFF !important;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 4px solid #F39C12;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

header a.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

header a.logo img {
    max-height: 56px;
    object-fit: contain;
}

header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav a {
    color: #003169;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

header nav a:hover {
    color: #F39C12;
    border-bottom-color: #F39C12;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-play {
    background-color: #22B14C;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play:hover {
    background-color: #1a8c3a;
}

#mobileMenuToggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #003169;
    cursor: pointer;
}

#mobileMenu {
    display: none;
    background-color: #FFFFFF;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#mobileMenu.show {
    display: block;
}

/* HERO SECTION */
.hero {
    position: relative;
    background-color: #003169;
    color: white;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1483032469466-b937c425697b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    mix-blend-mode: overlay;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #003169, rgba(0, 49, 105, 0.7), transparent);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.hero .badge {
    background-color: #F39C12;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    border-radius: 4px;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.125rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    border-left: 4px solid #F39C12;
    padding-left: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #F39C12;
    color: white;
}

.btn-primary:hover {
    background-color: #E08A0E;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-slant {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #FFFFFF;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* SERVICE BAR */
.service-bar {
    margin-top: -48px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 20;
}

.service-bar-content {
    background-color: #FFFFFF !important;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #F1F1F1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.service-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.service-item:last-child {
    border-right: none;
}

.service-item:hover {
    background-color: #F1F1F1;
}

.service-item-content h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.25rem;
}

.service-item-content .value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #003169;
}

.service-item-content .desc {
    font-size: 0.75rem;
    color: #999;
}

.service-item-icon {
    font-size: 2rem;
    color: #F39C12;
    margin-left: 1rem;
}

/* MAIN CONTENT LAYOUT */
main.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 0 1rem;
}

/* NEWS SECTION */
.news-section {
    flex: 1;
}

.news-section h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #003169;
}

.news-section h2 a {
    font-size: 0.875rem;
    font-weight: 700;
    color: #F39C12;
    text-transform: uppercase;
}

/* ARTICLE STYLES */
article {
    margin-bottom: 2rem;
}

article img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

article h3, article h4 {
    color: #003169;
    margin-bottom: 0.75rem;
}

article h3 a, article h4 a {
    color: #003169;
    transition: color 0.3s ease;
}

article h3 a:hover, article h4 a:hover {
    color: #F39C12;
}

/* FEATURED ARTICLE */
article.featured {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

article.featured > div:first-child {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

article.featured > div:first-child img {
    width: 100%;
    height: 256px;
    object-fit: cover;
}

article.featured > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* SIDEBAR */
aside {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-box {
    background-color: #F1F1F1 !important;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #003169;
}

.sidebar-box h3 {
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #003169;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-box li:last-child {
    border-bottom: none;
}

.sidebar-box a {
    color: #003169;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-box a:hover {
    color: #F39C12;
}

.sidebar-date {
    font-size: 0.75rem;
    color: #C0C0C0;
    margin-top: 0.25rem;
}

/* SOCIAL LINKS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* AD SPACE */
.ad-space {
    height: 256px;
    background-color: #F1F1F1 !important;
    border: 2px dashed #C0C0C0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #C0C0C0;
    font-weight: 700;
}

/* FOOTER */
footer {
    background-color: #003169 !important;
    color: white;
    margin-top: auto;
    padding: 3rem 1rem;
    border-top: 4px solid #F39C12;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

footer h4 {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #F39C12;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #ccc;
}

footer a {
    color: #ccc;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer p {
    color: #ccc;
    font-size: 0.875rem;
    max-width: 300px;
}

/* STICKY PLAYER */
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF !important;
    border-top: 1px solid #e0e0e0;
    z-index: 40;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.sticky-player .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.player-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.player-logo {
    width: 48px;
    height: 48px;
    background-color: #003169;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.player-text {
    flex: 1;
}

.player-text > div:first-child {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.eq-bar {
    width: 4px;
    background-color: #22B14C;
    animation: bounce 1s infinite ease-in-out;
}

.eq-bar:nth-child(2) { animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.player-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-play-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #22B14C;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-play-large:hover {
    background-color: #1a8c3a;
}

.player-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-bar {
    width: 80px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.volume-bar-fill {
    width: 70%;
    height: 100%;
    background-color: #003169;
}

.btn-webradio {
    background-color: #003169;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-webradio:hover {
    background-color: #002147;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #003169;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #F39C12;
    color: white;
    border-color: #F39C12;
}

.pagination .current {
    background-color: #F39C12;
    color: white;
    border-color: #F39C12;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header nav {
        display: none;
    }

    #mobileMenuToggle {
        display: block;
    }

    main.content-wrapper {
        grid-template-columns: 1fr;
    }

    aside {
        flex: 1;
    }

    article.featured {
        flex-direction: column;
    }

    footer .container {
        grid-template-columns: 1fr;
    }

    .sticky-player .container {
        flex-direction: column;
        gap: 1rem;
    }

    .player-content {
        flex-direction: column;
        gap: 1rem;
    }

    .player-meta {
        width: 100%;
        justify-content: space-between;
    }
}
