/*
Theme Name: BARSFM
Theme URI: https://example.com/barsfm-theme
Author: AI Collaborator
Author URI: https://example.com
Description: A modern WordPress theme for BARSFM with dark mode and RTL support
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barsfm
Tags: modern, responsive, blog, e-commerce, dark-mode, rtl
*/

/* CSS Variables - Dark Mode Palette */
:root {
    --primary-bg: #0d0d0d;
    --secondary-surface: #1a1a1a;
    --accent-color: #00ffcc;
    --accent-secondary: #9d50bb;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-bg);
    font-size: 16px;
    transition: all 0.3s ease;
}

/* RTL Font Support */
body.rtl {
    font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Header styles */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-logo-placeholder,
.custom-logo-link {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.site-logo-placeholder:hover,
.custom-logo-link:hover {
    color: var(--accent-secondary);
    transform: translateY(-2px);
}

.site-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: width 0.3s ease;
    z-index: -1;
}

.primary-menu a:hover::before {
    width: 100%;
}

.primary-menu a:hover {
    color: var(--primary-bg);
    transform: translateY(-2px);
}

/* Main content */
.site-main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--secondary-surface), var(--primary-bg));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    margin: 0.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: var(--primary-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.3);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
}

/* Posts */
.posts-container,
.posts-grid {
    display: grid;
    gap: 2rem;
}

.posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.post,
.post-card {
    background: var(--secondary-surface);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post::before,
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.post:hover::before,
.post-card:hover::before {
    transform: translateX(0);
}

.post:hover,
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
    border-color: var(--accent-color);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.post-excerpt {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-thumbnail img:hover {
    transform: scale(1.05);
}

/* Sections */
.features-section,
.latest-posts-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--secondary-surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    background: var(--secondary-surface);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.site-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: var(--accent-secondary);
}

.footer-navigation {
    background: var(--primary-bg);
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

/* RTL Support */
.rtl .header-inner {
    flex-direction: row-reverse;
}

.rtl .site-branding {
    align-items: flex-end;
}

.rtl .primary-menu {
    flex-direction: row-reverse;
}

.rtl .post-meta {
    flex-direction: row-reverse;
}

.rtl .feature-item {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100000;
}

.skip-link:focus {
    top: 6px;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-surface);
        flex-direction: column;
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        border: 1px solid var(--border-color);
        border-top: none;
    }
    
    .primary-menu.active {
        display: flex;
    }
}

/* Radio Player Styles */
.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 -10px 30px var(--shadow-color);
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
}

.play-pause-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

.play-pause-btn .play-icon,
.play-pause-btn .pause-icon {
    font-size: 1.2rem;
    color: var(--primary-bg);
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.play-pause-btn.playing .play-icon {
    display: none;
}

.play-pause-btn:not(.playing) .pause-icon {
    display: none;
}

/* Player Info */
.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-indicator {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.station-name {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.track-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Audio Visualizer */
.player-visualizer {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 30px;
}

.waveform .bar {
    width: 3px;
    background: linear-gradient(to top, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.waveform .bar:nth-child(1) { height: 10px; animation: wave 1s ease-in-out infinite; }
.waveform .bar:nth-child(2) { height: 20px; animation: wave 1s ease-in-out infinite 0.1s; }
.waveform .bar:nth-child(3) { height: 15px; animation: wave 1s ease-in-out infinite 0.2s; }
.waveform .bar:nth-child(4) { height: 25px; animation: wave 1s ease-in-out infinite 0.3s; }
.waveform .bar:nth-child(5) { height: 18px; animation: wave 1s ease-in-out infinite 0.4s; }
.waveform .bar:nth-child(6) { height: 22px; animation: wave 1s ease-in-out infinite 0.5s; }
.waveform .bar:nth-child(7) { height: 12px; animation: wave 1s ease-in-out infinite 0.6s; }
.waveform .bar:nth-child(8) { height: 20px; animation: wave 1s ease-in-out infinite 0.7s; }
.waveform .bar:nth-child(9) { height: 16px; animation: wave 1s ease-in-out infinite 0.8s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.waveform.paused .bar {
    animation-play-state: paused;
    opacity: 0.5;
}

/* Volume Controls */
.player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.volume-btn:hover {
    background: var(--secondary-surface);
    color: var(--accent-color);
}

.volume-icon,
.mute-icon {
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
}

.volume-btn.muted .volume-icon {
    display: none;
}

.volume-btn:not(.muted) .mute-icon {
    display: none;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: var(--secondary-surface);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent-secondary);
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--accent-secondary);
    transform: scale(1.2);
}

/* RTL Support for Player */
.rtl .player-container {
    flex-direction: row-reverse;
}

.rtl .now-playing {
    flex-direction: row-reverse;
}

.rtl .track-info {
    text-align: right;
}

/* Responsive Player */
@media (max-width: 768px) {
    .player-container {
        padding: 0 15px;
        gap: 1rem;
    }
    
    .play-pause-btn {
        width: 50px;
        height: 50px;
    }
    
    .player-visualizer {
        display: none;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .track-info {
        font-size: 0.8rem;
    }
    
    .station-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .player-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .player-info {
        order: 3;
        flex-basis: 100%;
        text-align: center;
    }
    
    .player-controls {
        order: 1;
    }
    
    .player-volume {
        order: 2;
    }
}

/* BARSFM Sticky Radio Player */
#barsfm-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    z-index: 9999;
    border-top: 1px solid rgba(0, 255, 204, 0.3);
}

.player-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.play-btn {
    background: #00ffcc;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #0d0d0d;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.4);
}

.play-btn .pause-text {
    display: none;
}

.play-btn.playing .play-text {
    display: none;
}

.play-btn.playing .pause-text {
    display: inline;
}

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

.live-text {
    color: #e0e0e0;
    font-weight: 500;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.waveform .bar {
    width: 3px;
    background: #00ffcc;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.waveform .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.waveform .bar:nth-child(2) { height: 15px; animation-delay: 0.2s; }
.waveform .bar:nth-child(3) { height: 12px; animation-delay: 0.4s; }
.waveform .bar:nth-child(4) { height: 18px; animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.waveform.paused .bar {
    animation-play-state: paused;
    opacity: 0.5;
}

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

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ffcc;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ffcc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* RTL Support */
.rtl .player-content {
    flex-direction: row-reverse;
}

.rtl .player-info {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #barsfm-player {
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }
    
    .player-content {
        padding: 0 15px;
        gap: 15px;
    }
    
    .play-btn {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-bg);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4);
}

/* RTL Back to Top */
.rtl .back-to-top {
    right: auto;
    left: 20px;
}

/* Back to Top Mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .rtl .back-to-top {
        right: auto;
        left: 15px;
    }
}

/* Front Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-surface));
    z-index: 1;
}

.mesh-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(157, 80, 187, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 204, 0.05) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -10px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(157, 80, 187, 0.5)); }
}

.bilingual-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.turkish-text {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.arabic-text {
    display: block;
    color: var(--text-secondary);
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 2rem;
}

/* Music Categories */
.categories-section {
    margin-bottom: 5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--secondary-surface);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.category-card:hover::before {
    opacity: 0.1;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Latest Dialogues */
.dialogues-section {
    margin-bottom: 5rem;
}

.dialogues-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.dialogue-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary-surface);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.dialogue-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.play-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-bg);
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dialogue-item:hover .play-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 255, 204, 0.4);
}

.dialogue-content {
    flex: 1;
}

.dialogue-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dialogue-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Iraqi Landmarks Tribute */
.landmarks-tribute {
    margin-bottom: 5rem;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-surface), var(--primary-bg));
    border-radius: 16px;
}

.landmarks-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.landmark-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.landmark-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-surface);
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    padding: 1rem;
    transition: all 0.3s ease;
}

.landmark-item:hover .landmark-icon {
    transform: scale(1.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.3);
}

.landmark-icon svg {
    width: 100%;
    height: 100%;
}

.landmark-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
}

.landmark-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* RTL Support for Front Page */
.rtl .bilingual-title {
    text-align: right;
}

.rtl .dialogue-item {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 3px solid var(--accent-color);
}

.rtl .dialogue-item:hover {
    transform: translateX(-10px);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: auto;
}

.lang-toggle {
    background: var(--secondary-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
}

.lang-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-toggle[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
}

.lang-option.active {
    background: var(--accent-color);
    color: var(--primary-bg);
    font-weight: 600;
}

/* RTL Language Switcher */
.rtl .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

/* Responsive Front Page */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        margin-bottom: 3rem;
    }
    
    .logo-text {
        font-size: 3rem;
    }
    
    .bilingual-title {
        font-size: 2rem;
    }
    
    .arabic-text {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dialogue-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .play-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .landmarks-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .bilingual-title {
        font-size: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .dialogue-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .rtl .dialogue-item {
        flex-direction: column;
    }
}
