/* Podmix Modern CSS Design System */
:root {
    --bg-dark: #070709;
    --bg-surface: #111217;
    --bg-card: #161720;
    --bg-glass: rgba(22, 23, 32, 0.82);
    --bg-glass-hover: rgba(30, 32, 44, 0.92);
    --primary-gradient: linear-gradient(135deg, #bb0859 0%, #e61c78 100%);
    --accent-glow: rgba(187, 8, 89, 0.35);
    --accent-color: #bb0859;
    --accent-hover: #d8106b;
    --text-main: #ffffff;
    --text-muted: #9da3ae;
    --text-subtle: #6b7280;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(187, 8, 89, 0.4);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --font-primary: 'Cairo', 'Outfit', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: -250px;
    right: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(187, 8, 89, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -250px;
    left: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(230, 28, 120, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-spacer {
    height: 85px;
}

/* Navbar */
.podmix-navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    transition: all 0.3s ease;
}

.site-logo {
    height: 36px;
    max-height: 36px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.04);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    border-bottom: 2px solid var(--accent-color);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(187, 8, 89, 0.6);
    color: #ffffff !important;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff !important;
    border-radius: 30px;
    padding: 10px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-highlight);
    color: #ffffff !important;
}

.btn-accent-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-main) !important;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent-outline:hover {
    background: var(--accent-color);
    color: #ffffff !important;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    padding: 70px 0 50px;
    position: relative;
}

.hero-pill-tag {
    display: inline-block;
    background: rgba(187, 8, 89, 0.12);
    border: 1px solid var(--border-highlight);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Story Cards */
.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-glow);
}

.story-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 58%; /* ~16:9 Aspect Ratio */
    background: #000000;
    overflow: hidden;
}

.story-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-thumbnail {
    transform: scale(1.07);
}

.story-detail-thumbnail-wrapper {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 12px;
    min-height: 280px;
    border: 1px solid var(--border-color);
}

.story-detail-thumbnail {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 14px;
}

.pill-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-lang {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[dir="rtl"] .badge-lang {
    right: auto;
    left: 14px;
}

.badge-cat {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: var(--primary-gradient);
    color: #ffffff;
}

[dir="rtl"] .badge-cat {
    left: auto;
    right: 14px;
}

.story-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Category Filter Chips */
.category-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.category-chip:hover, .category-chip.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 18px var(--accent-glow);
}

/* Player Cards & Studio */
.podmix-player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 35px var(--accent-glow);
}

.audio-visualizer-box {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#studioVisualizer {
    width: 100%;
    height: 100%;
}

.studio-fx-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 22px;
}

/* Footer */
.podmix-footer {
    background: #040406;
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 34px;
    max-height: 34px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}

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

/* Player Audio Controls (Functional geometric buttons) */
.btn-player-play {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
    cursor: pointer;
}

.btn-player-play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(187, 8, 89, 0.7);
}

.equalizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.equalizer-bars .bar {
    width: 4px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: height 0.2s ease, background 0.2s ease;
}

.playing .equalizer-bars .bar {
    background: var(--primary-gradient);
    animation: equalizerBounce 0.8s infinite alternate ease-in-out;
}

.playing .equalizer-bars .bar:nth-child(1) { animation-delay: 0.1s; }
.playing .equalizer-bars .bar:nth-child(2) { animation-delay: 0.3s; }
.playing .equalizer-bars .bar:nth-child(3) { animation-delay: 0.2s; }
.playing .equalizer-bars .bar:nth-child(4) { animation-delay: 0.4s; }
.playing .equalizer-bars .bar:nth-child(5) { animation-delay: 0.15s; }

@keyframes equalizerBounce {
    0% { height: 6px; }
    100% { height: 24px; }
}

/* Timeline & Seek Sliders */
.progress-bar-wrapper {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.player-seek-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.player-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.player-volume-slider {
    accent-color: var(--accent-color);
}

/* Modern Comment Card */
.comment-card-modern {
    background: rgba(22, 23, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    transition: all 0.3s ease;
}

.comment-card-modern:hover {
    border-color: var(--border-highlight);
}

/* Global Persistent Bottom Audio Player Bar */
.global-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(180deg, rgba(17, 18, 23, 0.95) 0%, rgba(7, 7, 9, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-highlight);
    padding: 12px 0;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.7), 0 0 25px var(--accent-glow);
    transition: transform 0.3s ease;
}

.btn-global-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-global-play:hover {
    transform: scale(1.08);
    color: #ffffff;
}

.btn-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 22px var(--accent-glow);
    z-index: 5;
    cursor: pointer;
}

.story-thumbnail-wrapper:hover .btn-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

body.has-global-player {
    padding-bottom: 85px;
}

/* Glass Input Forms & Controls */
.form-control-dark, .form-select-dark {
    background-color: rgba(11, 12, 16, 0.85) !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    transition: all 0.25s ease;
}

.form-control-dark:focus, .form-select-dark:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 18px var(--accent-glow) !important;
    outline: none;
}

.form-control-dark::placeholder {
    color: var(--text-subtle);
}

/* Table Dark Custom */
.table-dark-custom {
    color: var(--text-main);
    margin-bottom: 0;
    width: 100%;
}

.table-dark-custom th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-dark-custom td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-dark-custom tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

/* Status Badges */
.status-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* Wallet Payment Gateway Helpers */
.package-card { 
    background: #101117; 
    border: 2px solid var(--border-color); 
    border-radius: 18px; 
    cursor: pointer; 
    transition: all 0.25s ease; 
}
.package-card:hover { 
    border-color: var(--accent-color); 
    background: #171822; 
    transform: translateY(-2px); 
}
.package-card.selected { 
    border-color: var(--accent-color); 
    background: #1d1b26; 
    box-shadow: 0 0 20px rgba(187, 8, 89, 0.35); 
}
.package-card .badge-bonus { 
    background: var(--primary-gradient); 
    font-size: 0.75rem; 
    padding: 4px 10px;
    border-radius: 20px;
}
.gateway-btn { 
    background: #101117; 
    border: 2px solid var(--border-color); 
    border-radius: 16px; 
    color: #ffffff; 
    padding: 16px 12px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.25s ease; 
}
.gateway-btn:hover, .gateway-btn.selected, .gateway-btn.active { 
    border-color: var(--accent-color); 
    background: #1d1b26; 
}
.gateway-btn.disabled-gw { 
    opacity: 0.4; 
    cursor: not-allowed; 
    pointer-events: none; 
}
.btn-pay { 
    background: var(--primary-gradient); 
    border: none; 
    font-weight: 700; 
    border-radius: 30px; 
    font-size: 1.1rem; 
    transition: opacity 0.2s; 
    box-shadow: 0 4px 20px rgba(187, 8, 89, 0.4);
}
.btn-pay:hover { 
    opacity: 0.92; 
}
.btn-pay:disabled { 
    opacity: 0.5; 
}
.security-badge { 
    background: rgba(16,185,129,0.08); 
    border: 1px solid rgba(16,185,129,0.2); 
    border-radius: 14px; 
}
    .podmix-player-card {
        padding: 20px;
    }

/* High Contrast Text & Visibility Enhancements */
.text-muted {
    color: #a4abb8 !important;
}
.text-secondary {
    color: #8f96a5 !important;
}
.form-label {
    color: #c4c9d4 !important;
    font-weight: 600;
}
.card, .podmix-player-card, .comment-card-modern, .list-group-item {
    color: #ffffff;
}

/* Dark Select Option Dropdown Fix */
select option, .form-select option, select.form-control option {
    background-color: #111217 !important;
    color: #ffffff !important;
}

/* Form Controls Dark Override */
.form-control, .form-select {
    background-color: rgba(17, 18, 23, 0.9) !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
    background-color: #161720 !important;
    color: #ffffff !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
}

.form-control::placeholder {
    color: #8f96a5 !important;
}

/* Modals & Dropdowns High Contrast Text */
.modal-content {
    background-color: var(--bg-card) !important;
    color: #ffffff !important;
    border: 1px solid var(--border-highlight) !important;
}

.dropdown-menu-dark {
    background-color: #111217 !important;
    border: 1px solid var(--border-color) !important;
}

.dropdown-menu-dark .dropdown-item {
    color: #e2e8f0 !important;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* Alerts High Contrast Visibility */
.alert-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}
