/* style.css - Reggae Radio Directory COMPLETE */

/* 1. VARIABLES */
:root {
    --color-black: #000000;
    --color-dark: #121212;
    --color-card-bg: #1E1E1E;
    --color-green: #00A550;
    --color-gold: #FFD700;
    --color-red: #CC0000;
    --color-text: #FFFFFF;
    --color-muted: #aaaaaa;
    --glow-strong: 0 0 15px var(--color-green);
}

/* 2. GLOBAL RESETS */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--color-black); color: var(--color-text);
    font-family: 'Segoe UI', Tahoma, sans-serif; line-height: 1.6;
    min-height: 100vh; display: flex; flex-direction: column;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-green); border-radius: 5px; }

/* 3. HEADER */
.header-nav {
    background-color: var(--color-dark); padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 3px solid var(--color-gold); position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.header-nav .logo { font-size: 1.8em; font-weight: 900; text-transform: uppercase; }
.header-nav .logo span { color: var(--color-green); }
.nav-links { display: flex; gap: 15px; }
.nav-links a { color: var(--color-gold); font-weight: bold; padding: 5px 10px; border-radius: 4px; }
.nav-links a:hover { background: var(--color-gold); color: black; }

/* 4. INDEX: SEARCH & FILTER */
.search-area { background: #0a0a0a; border-bottom: 1px solid #333; }
.search-wrapper { text-align: center; padding: 15px 0 5px; }
#search-input {
    padding: 12px 20px; width: 90%; max-width: 500px; border-radius: 30px;
    border: 1px solid #444; background-color: #1a1a1a; color: white; outline: none;
}
#search-input:focus { border-color: var(--color-green); }
.filter-bar { padding: 15px 0; text-align: center; overflow-x: auto; white-space: nowrap; }
.filter-bar a {
    display: inline-block; padding: 6px 16px; margin: 0 5px; border-radius: 20px;
    border: 1px solid #444; color: var(--color-muted); background: rgba(255,255,255,0.05);
}
.filter-bar a:hover, .filter-bar a.active {
    border-color: var(--color-green); background: var(--color-green); color: white;
}

/* 5. GRID & CARDS */
main { flex-grow: 1; padding: 40px 20px; max-width: 1400px; margin: 0 auto; width: 100%; }
.section-title { font-size: 1.8rem; border-left: 5px solid var(--color-red); padding-left: 15px; margin-bottom: 30px; font-weight: 700; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }

.radio-card {
    background-color: var(--color-card-bg); border-radius: 12px; overflow: hidden;
    border: 1px solid #333; position: relative; transition: transform 0.3s;
}
.radio-card:hover { transform: translateY(-8px); border-color: var(--color-green); box-shadow: var(--glow-strong); z-index: 10; }
.card-image-box { width: 100%; aspect-ratio: 1 / 1; background: #000; position: relative; overflow: hidden; }
.card-image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.radio-card:hover .card-image-box img { transform: scale(1.1); }

.featured-check { position: absolute; top: 10px; left: 10px; background: var(--color-gold); color: black; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; z-index: 5; }

/* Action Buttons */
.card-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.action-btn { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.action-btn:hover { background: var(--color-green); color: black; }
.fav-btn.active { color: red; border-color: red; }

.card-info { padding: 15px; background: linear-gradient(to bottom, var(--color-card-bg), #151515); display: flex; flex-direction: column; flex-grow: 1; }
.station-title { font-size: 1.1rem; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: white; font-weight: bold; }
.station-meta-row { margin-top: auto; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--color-muted); border-top: 1px solid #333; padding-top: 10px; }
.meta-genre { color: var(--color-gold); text-transform: uppercase; font-size: 0.75rem; font-weight: bold; }

/* 6. PLAYER PAGE STYLES */
.profile-header-area { position: relative; width: 100%; min-height: 320px; background-size: cover; background-position: center; display: flex; align-items: flex-end; border-bottom: 4px solid var(--color-green); }
.profile-content-wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 30px; display: flex; align-items: flex-end; gap: 30px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); }
.profile-logo { width: 160px; height: 160px; border-radius: 50%; border: 5px solid #000; box-shadow: 0 0 25px rgba(0, 165, 80, 0.5); background: #000; object-fit: cover; }
.profile-text h1 { font-size: 3rem; margin: 0; color: var(--color-gold); text-shadow: 2px 2px 5px #000; line-height: 1; }
.badge { padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-right: 5px; }
.badge.genre { background: var(--color-green); color: black; }
.badge.country { background: var(--color-red); color: white; }

.stream-player-container { max-width: 900px; margin: 30px auto 40px; background: var(--color-card-bg); border: 1px solid #333; border-radius: 15px; padding: 25px; position: relative; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.custom-audio-controls { display: flex; align-items: center; gap: 20px; justify-content: center; margin-top: 20px; }
#play-pause-btn { width: 65px; height: 65px; border-radius: 50%; border: none; background: var(--color-green); font-size: 1.8rem; cursor: pointer; box-shadow: 0 0 15px rgba(0,165,80,0.4); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
#play-pause-btn:hover { transform: scale(1.1); background: var(--color-gold); }

/* Visualizer */
.music-visualizer { display: flex; gap: 4px; height: 20px; align-items: flex-end; opacity: 0.3; }
.music-visualizer.active { opacity: 1; }
.bar { width: 6px; background: var(--color-green); height: 5px; border-radius: 2px; }
.music-visualizer.active .bar { animation: visualize 0.6s infinite alternate; }
@keyframes visualize { 0% { height: 5px; } 100% { height: 25px; background: var(--color-gold); } }

/* Details Grid */
.details-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; }
.info-card { background: var(--color-card-bg); padding: 25px; border-radius: 10px; border: 1px solid #333; }
.soc-btn { display: block; padding: 10px; margin-bottom: 8px; background: #333; border-radius: 5px; text-align: center; transition: 0.2s; font-weight: bold; }
.soc-btn:hover { background: var(--color-green); color: black; }
.share-buttons { display: flex; gap: 10px; }
.share-btn { flex: 1; padding: 10px; border-radius: 5px; text-align: center; color: white; font-weight: bold; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }

/* 7. TOAST */
#toast { visibility: hidden; min-width: 200px; background-color: var(--color-green); color: #000; text-align: center; border-radius: 50px; padding: 16px; position: fixed; z-index: 1000; left: 50%; bottom: 30px; transform: translateX(-50%); font-weight: bold; }
#toast.show { visibility: visible; }

/* 8. FOOTER */
footer { text-align: center; padding: 40px; background: #080808; border-top: 1px solid #222; margin-top: auto; }

/* 9. RESPONSIVE */
@media (max-width: 768px) {
    .radio-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .details-grid { grid-template-columns: 1fr; }
    .header-nav { flex-direction: column; gap: 15px; }
    .profile-content-wrapper { flex-direction: column; text-align: center; align-items: center; }
}