/* ==========================================================================
   RATFM Radio Station Global Stylesheet
   ========================================================================== */

/* 1. Reset & Full-Screen Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background-color: #0d0e12;
}

/* 2. Responsive Background Image */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Points "up and out" of the css/ folder to grab your background asset safely */
    background-image: url('../photoback.jpg');
    background-size: cover;       
    background-position: center;   
    background-repeat: no-repeat;
    z-index: -2;                    
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.85));
    z-index: -1;
}

/* 3. 3-Column Interface Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 400px 1fr 380px;
    gap: 30px;
    height: calc(100vh - 60px);
    padding: 40px;
    position: relative;
    z-index: 10;
}

/* Glassmorphism sidebar panels */
.panel {
    background: rgba(26, 28, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    color: #ffffff;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.panel::-webkit-scrollbar {
    width: 6px;
}
.panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.right-side-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.right-side-wrapper .panel {
    overflow: hidden;
}

.player-panel { flex: 0 0 auto; }
.sponsor-panel { flex: 1 1 auto; }

/* Typography & Layout Accents */
h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.highlight-box {
    background: rgba(57, 255, 20, 0.05);
    border-left: 3px solid #39ff14;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.email-link {
    color: #39ff14;
    text-decoration: none;
    font-weight: bold;
}
.email-link:hover { text-decoration: underline; }

/* Buttons */
.btn-donate {
    display: block;
    width: 100%;
    background-color: #39ff14;
    color: #0d0e12;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}
.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.5);
    background-color: #45ff26;
}

/* Audio Player UI Container */
.audio-player-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Sponsor Architecture Grid Placement */
.sponsor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}
.sponsor-card {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.15);
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* 4. Bottom Navigation Panel System */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(26, 28, 35, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding: 0;
}

.nav-item { position: relative; list-style: none; height: 100%; display: flex; align-items: center; }
.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    color: #a0a5b5;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    cursor: pointer;
}
.nav-link:hover, .nav-item:hover .nav-link { color: #39ff14; }

/* Submenu Dropup Panels */
.dropup-menu {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1c23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 240px;
    padding: 10px 0;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.nav-item:hover .dropup-menu { opacity: 1; visibility: visible; bottom: 65px; }
.dropup-menu li { list-style: none; }
.dropup-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}
.dropup-menu a:hover { background-color: rgba(255, 255, 255, 0.05); color: #39ff14; }
.canceled { color: #ff4a4a !important; opacity: 0.6; text-decoration: line-through; }
.menu-info {
    display: block;
    padding: 10px 20px;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
}

/* 5. Mobile & Responsive Layout Adaptations */
@media (max-width: 1100px) {
    body { overflow-y: auto; }
    .main-grid {
        grid-template-columns: 1fr;
        height: auto;
        padding: 20px;
        margin-bottom: 80px;
    }
    .main-grid > div:nth-child(2) {
        order: -1; 
        margin-bottom: 10px;
    }
    .right-side-wrapper { height: auto; }
}
@media (max-width: 768px) {
    .nav-link { font-size: 0.75rem; padding: 0 5px; }
}