/* style.css - FIXED LOGIN VERSION */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

:root {
    --bg-dark: #0a0a12;
    --card-bg: #15151f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --brand-gradient: linear-gradient(135deg, #FF3399, #9933FF, #33CCFF);
    --accent-blue: #33CCFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 1. HEADER & LOGO --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-icon {
    width: 40px !important;
    height: 40px !important;
    display: block !important;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
}

.login-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.login-link:hover { color: white; }

/* --- 2. HERO SECTION --- */
.hero {
    text-align: center;
    padding: 9rem 1rem 4rem 1rem;
    background: radial-gradient(circle at center, rgba(153, 51, 255, 0.15) 0%, rgba(10, 10, 18, 0) 70%);
}

.brand-logo-img {
    display: block;
    max-width: 180px;
    width: 100%;      
    height: auto;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0 0 20px rgba(153, 51, 255, 0.4));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* --- 3. INTRO SECTION --- */
.intro-section {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.intro-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-section p { color: #ccc; font-weight: 300; line-height: 1.6; }

/* --- 4. MUSIC GRID (COMPACT) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 1.5rem;
}

.song-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.song-card:hover {
    transform: translateY(-5px);
    border-color: #9933FF;
}

.cover-art {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.song-info { padding: 1rem; }

.tags {
    font-size: 0.6rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: block;
}

.song-title { 
    font-size: 1rem;
    margin-bottom: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.listen-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-align: center;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: 0.3s;
}

.listen-btn:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    color: white;
}

/* --- 5. LOGIN & ADMIN PANEL (FIXED) --- */

/* This fixes the login box visibility */
.login-container {
    width: 100%;
    max-width: 400px !important; /* Force smaller width for login */
    margin: 10rem auto; /* Center vertically/horizontally */
    padding: 2rem;
    background: var(--card-bg); /* Give it a background color so inputs pop */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.admin-container {
    max-width: 800px;
    margin: 8rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
}

input, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: #0a0a12; /* Dark input background */
    border: 1px solid #333; /* Visible border */
    color: white;
    border-radius: 6px;
    outline: none;
}

input:focus {
    border-color: #9933FF; /* Highlight on click */
}

button {
    background: var(--brand-gradient);
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    color: white;
    margin-top: 10px;
}

/* Admin Table Styles */
.song-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #0a0a12;
    border-radius: 8px;
    overflow: hidden;
}

.song-list-table th, .song-list-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
    color: #ccc;
}

.song-list-table th {
    background: #1f1f2e;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.song-list-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    margin-right: 5px;
    display: inline-block;
    font-weight: bold;
    color: white;
}

.btn-edit { background: #3366ff; }
.btn-delete { background: #ff3366; }
.btn-edit:hover { background: #254dbf; }
.btn-delete:hover { background: #cc0033; }

/* --- 6. FOOTER --- */
.site-footer {
    background: #050508;
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.social-icon:hover { color: white; transform: scale(1.1); }