/*
 * Radio Bahrain streaming hub styles
 */

:root {
    --bg-dark: #080c16;
    --bg-darker: #05070f;
    --accent-primary: #f97316;
    --accent-secondary: #fb7185;
    --accent-tertiary: #8b5cf6;
    --accent-blue: #22d3ee;
    --accent-blue-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: rgba(248, 250, 252, 0.72);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at top, #131c33 0%, #05070f 55%, #03040a 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

#home {
    padding: 120px 0 80px;
    scroll-margin-top: 120px;
}

#about {
    background: linear-gradient(140deg, rgba(10, 16, 32, 0.96) 0%, rgba(22, 12, 28, 0.94) 100%);
    padding: 110px 0;
}

#contact {
    background: radial-gradient(ellipse at center, rgba(9, 12, 22, 0.98) 0%, rgba(4, 6, 12, 0.98) 100%);
    padding: 110px 0 120px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: rgba(2, 4, 11, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    gap: 28px;
    transition: height 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    height: 80px;
    background: rgba(2, 4, 11, 0.95);
    padding: 0 36px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.menu-item {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-item:hover::after,
.menu-item.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.language-toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Home / Coverflow */
.coverflow-wrapper {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.home-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.home-tag {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.home-title {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    max-width: 780px;
    margin: 0 auto;
}

.home-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.75;
}

.coverflow-shell {
    position: relative;
    width: 100%;
    padding-top: 40px;
}

.coverflow-container {
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1300px;
    position: relative;
}

.coverflow {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 360px;
}

.coverflow-item {
    position: absolute;
    width: 300px;
    height: 300px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    user-select: none;
}

.coverflow-item .cover {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.6);
    background: #1f2937;
}

.coverflow-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coverflow-item .reflection {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    transform: scaleY(-1);
    opacity: 0.2;
    filter: blur(2px);
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,1) 100%);
}

.coverflow-item.active {
    z-index: 100;
    transform: translateX(0) translateZ(0) rotateY(0deg);
}

.coverflow-item.active .cover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, background 0.25s ease;
    z-index: 200;
}

.nav-button:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(255, 255, 255, 0.18);
}

.nav-button.prev { left: 40px; }
.nav-button.next { right: 40px; }

.dots-container {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 210;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.82);
    transform: scale(1.35);
}

.play-pause-button {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
    z-index: 220;
}

.play-pause-button:hover {
    transform: translateX(-50%) scale(1.08);
    background: rgba(255, 255, 255, 0.22);
}

.info {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    z-index: 220;
}

.info h2 {
    font-size: 30px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

.info p {
    font-size: 17px;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.channel-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 26px;
}

.stat-card {
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}

.stat-card .stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

/* About section */
.about-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-header h2 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-header p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.8;
}

.about-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: stretch;
}

.about-visual {
    border-radius: 32px;
    background: rgba(7, 11, 23, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.broadcast-timeline {
    display: grid;
    gap: 18px;
}

.timeline-slot {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-time {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 18px;
    min-width: 80px;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-title {
    font-weight: 600;
    font-size: 17px;
}

.timeline-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-info h3 {
    font-size: 28px;
    font-weight: 700;
}

.about-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-list li {
    list-style: none;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.highlight-block {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 6px;
}

.highlight-block h4 {
    font-size: 20px;
    font-weight: 700;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.highlight-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(11, 16, 32, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    flex-direction: column;
}

.highlight-thumb {
    position: relative;
    padding-top: 56.25%;
}

.highlight-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.highlight-meta {
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.highlight-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.highlight-actions a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.highlight-actions a svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.highlight-actions a:hover svg {
    transform: translateX(4px);
}

/* Contact */
.contact-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 40px;
}

.contact-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.75;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-info-section h3 {
    font-size: 28px;
    font-weight: 700;
}

.contact-info-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.85;
}

.contact-details {
    display: grid;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(11, 16, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: 0 18px 30px rgba(9, 12, 22, 0.45);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-blue), #57d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.contact-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.contact-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    gap: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(11, 16, 32, 0.65);
    color: white;
    font-size: 16px;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-blue), #60a5fa, #818cf8);
    color: var(--accent-blue-dark);
    border: none;
    padding: 16px 42px;
    border-radius: 32px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.35);
}

/* Footer & utilities */
.footer {
    background: rgba(2, 4, 11, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 24px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-content {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: inline-flex;
    gap: 20px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.scroll-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
}

/* RTL tweaks */
html[dir="rtl"] body {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

html[dir="rtl"] .header,
html[dir="rtl"] .footer-content,
html[dir="rtl"] .contact-container,
html[dir="rtl"] .about-main,
html[dir="rtl"] .channel-stats {
    direction: rtl;
}

html[dir="rtl"] .main-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .menu-item::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .home-intro,
html[dir="rtl"] .about-header,
html[dir="rtl"] .about-info,
html[dir="rtl"] .contact-header,
html[dir="rtl"] .contact-info-section {
    text-align: right;
}

html[dir="rtl"] .timeline-slot {
    flex-direction: row-reverse;
}

html[dir="rtl"] .timeline-time {
    min-width: 0;
}

html[dir="rtl"] .highlight-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .highlight-actions a svg {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 1200px) {
    .header {
        padding: 0 32px;
    }
}

@media (max-width: 980px) {
    .main-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(2, 4, 11, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px 32px;
        flex-direction: column;
        gap: 18px;
        display: none;
    }

    .main-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .header {
        height: 100px;
    }

    #home {
        padding-top: 100px;
    }

    .about-main,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .coverflow-container {
        height: 360px;
    }

    .coverflow-item {
        width: 260px;
        height: 260px;
    }

    .nav-button.prev { left: 20px; }
    .nav-button.next { right: 20px; }
}

@media (max-width: 768px) {
    .header {
        padding: 0 24px;
    }

    .home-title {
        font-size: clamp(30px, 8vw, 44px);
    }

    .channel-stats {
        gap: 18px;
    }

    .stat-card {
        padding: 22px;
    }

    .contact-content,
    .about-content {
        padding: 0 24px;
    }

    .timeline-slot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .scroll-to-top {
        right: 24px;
        bottom: 28px;
    }
}

@media (max-width: 520px) {
    .header {
        height: 88px;
        gap: 16px;
    }

    .logo-text {
        font-size: 19px;
    }

    .language-toggle {
        padding: 8px 14px;
        font-size: 14px;
    }

    .coverflow-container {
        height: 320px;
    }

    .coverflow-item {
        width: 220px;
        height: 220px;
    }

    .info {
        top: 60px;
    }

    .nav-button {
        width: 46px;
        height: 46px;
    }

    .contact-form,
    .about-visual {
        padding: 28px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }
}
