/* ========================================
   RADIO LOTUS - LAYOUT CSS
   Header, Footer, Mini Player
   ======================================== */

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

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

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    padding: 4px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.6);
    font-weight: 400;
}

/* Main Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #f8fafc;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 1px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-listen {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-listen:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-listen.playing {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
}

.btn-listen-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f8fafc;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.nav-mobile.open {
    max-height: 400px;
    padding: 1rem;
}

.nav-mobile a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: #f8fafc;
    background: rgba(99, 102, 241, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer Brand */
.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(248, 250, 252, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #f8fafc;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

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

/* Footer Newsletter */
.footer-newsletter h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-form input::placeholder {
    color: rgba(248, 250, 252, 0.4);
}

.newsletter-form input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.newsletter-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.newsletter-form button svg {
    width: 18px;
    height: 18px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.5);
    margin: 0;
}

.footer-powered a {
    color: #6366f1;
    text-decoration: none;
}

.footer-powered a:hover {
    text-decoration: underline;
}

/* ========================================
   MINI PLAYER
   ======================================== */

.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mini-player.visible {
    transform: translateY(0);
}

.mini-player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.mini-player-art {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #ec4899);
}

.mini-player-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-player-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1.5rem;
}

.mini-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mini-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.mini-play-btn.playing {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(236, 72, 153, 0.5); }
}

.mini-player-listeners {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.7);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-main {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }

    .btn-listen-text {
        display: none;
    }

    .btn-listen {
        padding: 0.6rem;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .mini-player {
        padding: 0.5rem 1rem;
    }

    .mini-player-listeners {
        display: none;
    }

    .mini-player-controls {
        margin: 0 0 0 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    .mini-player-art {
        width: 36px;
        height: 36px;
    }

    .mini-play-btn {
        width: 40px;
        height: 40px;
    }
}
