/* 
 * Sunnah Radio - Premium Responsive CSS Stylesheet
 * Theme: Divine Emerald & Royal Gold
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-darkest: #090e0c;
    --bg-darker: #0d1512;
    --bg-dark: #121c18;
    --bg-card: rgba(18, 28, 24, 0.75);
    --primary: #10b981; /* Emerald */
    --primary-glow: rgba(16, 185, 129, 0.4);
    --accent: #d4af37; /* Metallic Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dimmed: #6b7280;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border: rgba(16, 185, 129, 0.15);
    --border-hover: rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-main);
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Ambient glow backgrounds */
.glow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-orb-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: floatOrb 20s infinite alternate;
}

.glow-orb-2 {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb 25s infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -60px) scale(1.1); }
}

/* Header & Nav */
header {
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(9, 14, 12, 0.9) 0%, rgba(9, 14, 12, 0) 100%);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(16, 185, 129, 0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: var(--transition);
}

.logo-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.logo-text h1 span {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher Button */
.lang-switch-btn {
    background: rgba(18, 28, 24, 0.6);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.lang-switch-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

/* Admin Access Button */
.admin-btn {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(212,175,55,0.1) 100%);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.admin-btn:hover {
    background: var(--accent);
    color: var(--bg-darkest);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

/* Main Grid Layout */
main {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 968px) {
    main {
        grid-template-columns: 1fr;
        margin-top: 100px;
        gap: 2rem;
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.08);
}

/* Player section styles */
.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.status-badge.connecting {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.status-badge.offline {
    color: var(--text-dimmed);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.badge-dot.live-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Album Art / Cover Circle */
.album-art-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 1rem 0 2rem;
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #052e16 100%);
    border: 6px solid rgba(16, 185, 129, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.album-art::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.album-art-logo {
    width: 120px;
    height: 120px;
    opacity: 0.85;
    z-index: 1;
    transition: var(--transition);
}

/* Spinner Rotate when playing */
.album-art.playing {
    animation: rotateVinyl 12s linear infinite;
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

@keyframes rotateVinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Audio Visualizer Waves */
.visualizer-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
    margin-bottom: 2rem;
}

.visualizer-bar {
    width: 4px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 20px;
    transition: height 0.15s ease;
}

.visualizer-container.active .visualizer-bar {
    animation: jumpBar 1.2s ease-in-out infinite alternate;
}

.visualizer-container.active .visualizer-bar:nth-child(2n) {
    animation-delay: 0.15s;
    background-color: var(--accent);
}
.visualizer-container.active .visualizer-bar:nth-child(3n) {
    animation-delay: 0.35s;
    background-color: var(--primary);
}
.visualizer-container.active .visualizer-bar:nth-child(4n) {
    animation-delay: 0.55s;
    background-color: var(--accent);
}

@keyframes jumpBar {
    0% { height: 5px; }
    100% { height: 35px; }
}

/* Show Info */
.show-info {
    margin-bottom: 2rem;
    width: 100%;
}

.show-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.show-host {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.show-host::before {
    content: '🎙️';
}

/* Player Controls Grid */
.player-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.main-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.play-pause-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    transition: var(--transition);
}

.play-pause-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #10b981 0%, #10b981 100%);
}

.play-pause-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 80%;
    max-width: 260px;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.volume-btn:hover {
    color: var(--text-main);
}

.volume-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Volume Slider */
.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-darkest);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Stream Source Selector */
.source-selector {
    background: rgba(9, 14, 12, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: 350px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.source-selector label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dimmed);
    font-weight: 600;
}

.source-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.source-btn {
    background: rgba(18, 28, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.source-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.source-btn.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Tabs for Right Panel */
.tabs-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for schedule */
.schedule-list::-webkit-scrollbar,
.guide-content::-webkit-scrollbar {
    width: 6px;
}

.schedule-list::-webkit-scrollbar-track,
.guide-content::-webkit-scrollbar-track {
    background: transparent;
}

.schedule-list::-webkit-scrollbar-thumb,
.guide-content::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.15);
    border-radius: 10px;
}

.schedule-list::-webkit-scrollbar-thumb:hover,
.guide-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.3);
}

.schedule-item {
    display: flex;
    gap: 1rem;
    background: rgba(18, 28, 24, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.05);
    border-radius: 16px;
    padding: 1rem;
    align-items: center;
    transition: var(--transition);
}

.schedule-item:hover {
    background: rgba(18, 28, 24, 0.7);
    border-color: rgba(212, 175, 55, 0.15);
    transform: translateX(4px);
}

.schedule-item.live-now {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    position: relative;
}

.schedule-item.live-now::before {
    content: 'LIVE';
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--primary);
    color: var(--bg-darkest);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.show-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(9, 14, 12, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.1);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.show-time .time-label {
    font-size: 0.7rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
}

.show-details {
    flex-grow: 1;
}

.show-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.show-speaker {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact/Request Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    background: rgba(9, 14, 12, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
    background: rgba(9, 14, 12, 0.8);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #b28e28 100%);
    border: none;
    color: var(--bg-darkest);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #e5c158 0%, var(--accent) 100%);
}

.form-response {
    display: none;
    font-size: 0.9rem;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.form-response.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Social Footer Area */
footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(16, 185, 129, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 28, 24, 0.6);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-dimmed);
}

/* Modals & Dialogs (Broadcaster Setup Guide) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 8, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-hover);
    border-radius: 24px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: #ef4444;
}

.guide-content {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guide-section h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.5rem;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
}

.param-table th, 
.param-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.param-table th {
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.param-table td {
    background: rgba(9, 14, 12, 0.4);
    font-size: 0.9rem;
}

.param-value {
    font-family: monospace;
    color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

.guide-step-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1.25rem;
}

.guide-step-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guide-step-list li strong {
    color: var(--text-main);
}

/* Bilingual Translation elements */
[lang="bn"] {
    display: inherit;
}

[lang="en"] {
    display: none;
}

body.lang-en [lang="bn"] {
    display: none;
}

body.lang-en [lang="en"] {
    display: inherit;
}

/* Live stream status animation */
@keyframes equalizerAnim {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(5); }
}