/* Root Variables & Theme Settings */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --header-bg: #ffffff;
    --footer-bg: #ef5466;
    --accent-color: #fc0254;
    --secondary-color: #383b70;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #f5f6fa;
}

.dark {
    --bg-color: #121212;
    --text-color: #ffffff;
    --header-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #1e1e1e;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Comic Neue', cursive;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Header Styles */
.header-section {
    padding: 1rem 3rem;
    background-color: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.site-logo {
    width: 120px;
}

.site-logo img {
    width: 100%;
    height: auto;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 1.5rem;
}

.main-menu a {
    font-size: 1.125rem;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* User Panel */
.user-panel {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-panel a {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.user-panel .register {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    color: var(--text-color);
    padding: 2rem;
    max-width: 800px;
}

/* Main Content Area */
#mainContent {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Cards and Items */
.song-item, .playlist-item, .category-item {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.song-item:hover, .playlist-item:hover, .category-item:hover {
    transform: translateY(-5px);
}

/* Footer Section */
.footer-section {
    background-color: var(--footer-bg);
    padding: 4rem 0 2rem;
    color: var(--text-color);
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.site-btn {
    padding: 0.5rem 1.5rem;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.site-btn:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .main-menu {
        display: none;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-widget {
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }