/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-main: #1a1a1a;
    --text-light: #757575;
    --card-bg: #ffffff;
    --accent: #000000;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --border: #e0e0e0;
}

[data-theme="dark"] {
    --bg-main: #121212;
    --bg-secondary: #1e1e1e;
    --text-main: #e0e0e0;
    --text-light: #a0a0a0;
    --card-bg: #1e1e1e;
    --accent: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 45px; width: 45px; object-fit: cover; border-radius: 50%; }
.brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; }

.nav-links { display: flex; gap: 15px; align-items: center; }

/* Pill button style for all links */
.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

.nav-actions { display: flex; align-items: center; gap: 20px; }

/* Sun/Moon Toggle */
#theme-toggle { cursor: pointer; font-size: 1.3rem; transition: transform 0.3s; }

/* Gradient Sun */
.fa-sun {
    background: -webkit-linear-gradient(45deg, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fa-moon { color: var(--text-main); }
#theme-toggle:hover { transform: rotate(15deg); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* =========================================
   3. HERO & LAYOUT
   ========================================= */
.hero {
    text-align: center; padding: 80px 20px;
    background: var(--bg-secondary); position: relative; overflow: hidden;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; font-weight: 700; }
.hero p { color: var(--text-light); margin-bottom: 30px; }

.search-container { max-width: 600px; margin: 0 auto; position: relative; }
.search-container input {
    width: 100%; padding: 15px 50px;
    border: 1px solid var(--border); border-radius: 50px;
    font-family: inherit; font-size: 1rem;
    background: var(--bg-main); color: var(--text-main);
    box-shadow: var(--shadow); outline: none;
}
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-light); }

.waveform-decoration { display: flex; justify-content: center; gap: 5px; margin-top: 40px; height: 30px; align-items: center; }
.bar { width: 4px; background: var(--text-main); height: 10px; border-radius: 2px; animation: wave 1s infinite ease-in-out; }
.bar:nth-child(2) { animation-delay: 0.1s; height: 15px; }
.bar:nth-child(3) { animation-delay: 0.2s; height: 25px; }
.bar:nth-child(4) { animation-delay: 0.1s; height: 15px; }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.5); } }

/* =========================================
   4. SONG GRID
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-title { margin-bottom: 30px; font-size: 1.5rem; border-left: 4px solid var(--accent); padding-left: 15px; }

/* Forced 3 Columns */
.song-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.song-card {
    background: var(--card-bg); border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.3s ease;
    cursor: pointer; border: 1px solid var(--border);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.song-card:hover { transform: translateY(-5px); }

.card-img-wrapper {
    width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    background: #000; position: relative;
}
.card-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;
}
.song-card:hover .card-img-wrapper img { transform: scale(1.05); }

.play-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; font-size: 2rem; opacity: 0.8;
}

.card-info { padding: 20px; }
.card-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.card-info p { font-size: 0.9rem; color: var(--text-light); }

/* =========================================
   5. SINGLE LYRIC PAGE
   ========================================= */
.hidden { display: none; }
.back-btn {
    background: none; border: none; font-size: 1rem; cursor: pointer;
    margin-bottom: 20px; color: var(--text-main); font-family: inherit;
    display: flex; align-items: center; gap: 8px;
}
.split-layout { display: grid; grid-template-columns: 1fr 450px; gap: 40px; margin-top: 30px; }
.lyrics-text-area {
    font-size: 1.1rem; white-space: pre-line; color: var(--text-main);
    line-height: 1.8; margin-bottom: 30px;
}
.video-area {
    background: #000; border-radius: 12px; width: 100%;
    aspect-ratio: 16 / 9; overflow: hidden;
    box-shadow: var(--shadow); position: sticky; top: 100px;
}
.action-buttons { display: flex; gap: 15px; border-top: 1px solid var(--border); padding-top: 20px; }
.action-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-main); padding: 10px 20px; border-radius: 8px;
    cursor: pointer; font-family: inherit; font-weight: 600;
    display: flex; align-items: center; gap: 8px; transition: all 0.3s ease;
}
.action-btn:hover { background: var(--bg-secondary); border-color: var(--text-main); }
.action-btn.fav-active i { font-weight: 900; color: #e53935; }

/* =========================================
   6. FOOTER
   ========================================= */
footer { background: #0e0e0e; color: #fff; padding: 50px 5%; margin-top: auto; }

.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.footer-brand-group {
    display: flex; align-items: center; gap: 15px;
}
.footer-logo {
    height: 55px; width: 55px; border-radius: 50%; object-fit: cover;
    border: 2px solid #333;
}
.footer-text h3 { font-size: 1.2rem; margin-bottom: 2px; }
.footer-text p { font-size: 0.85rem; opacity: 0.7; color: #ccc; }

.copyright { text-align: center; font-size: 0.8rem; opacity: 0.6; border-top: 1px solid #333; padding-top: 20px; }

.social-links { font-size: 1.5rem; display: flex; gap: 25px; }
.social-icon { color: #fff; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }

/* --- Social Glows --- */
/* Instagram: Pink */
.social-icon.insta:hover {
    color: #ff69b4; text-shadow: 0 0 20px rgba(255, 105, 180, 0.8); transform: scale(1.1);
}
/* X: White */
.social-icon.x:hover {
    color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); transform: scale(1.1);
}
/* YouTube: Red */
.social-icon.yt:hover {
    color: #FF0000; text-shadow: 0 0 20px rgba(255, 0, 0, 0.8); transform: scale(1.1);
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media screen and (max-width: 900px) {
    .song-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    body { overflow-x: hidden; }
    .nav-links {
        position: absolute; right: 0; height: 95vh; top: 60px;
        background-color: var(--bg-main); display: flex; flex-direction: column;
        align-items: center; width: 70%; transform: translateX(100%);
        transition: transform 0.3s ease-in; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 50px; z-index: 999;
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .hamburger { display: block; color: var(--text-main); }
    .hero h1 { font-size: 2rem; }
    .song-grid { grid-template-columns: 1fr; } /* 1 Column Mobile */
    .split-layout { display: flex; flex-direction: column; }
    .video-area { order: -1; position: relative; top: 0; margin-bottom: 20px; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-brand-group { flex-direction: column; }
}