/* ========== ROOT VARIABLES ========== */
:root {
    --primary-green: #2ecc71;
    --pure-green: #28b463;
    --dark-green: #27ae60;
    --gold: #f1c40f;
    --dark-gold: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #e67e22;
    --some-green: #659F10;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    padding-top: 60px;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== HEADER STYLES ========== */
header {
    background: linear-gradient(135deg, #1a1a1a, #25c970);
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.welcome {
    margin-right: 10px;
    color: var(--light-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo img {
    height: 36px;
    width: auto;
    margin-right: 8px;
}

/* ========== NAVIGATION STYLES ========== */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

nav a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* ========== BUTTON STYLES ========== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--gold) !important;
    color: var(--dark-color) !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--dark-gold) !important;
    color: var(--dark-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== SEARCH OVERLAY STYLES ========== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 600px;
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
}

.close-search {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none !important;
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color) !important;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* ========== RESPONSIVE SONG GRID ========== */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1rem;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 900px) {
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.song-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    aspect-ratio: 1/1.2;
    position: relative;
    display: flex;
    flex-direction: column;
}

.song-cover-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.song-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.play-overlay i {
    color: white;
    font-size: 2.5rem;
    background: rgba(241, 196, 15, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    border-radius: 8px;
    z-index: 3;
    color: white;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 1rem;
    color: var(--light-color);
    opacity: 0.9;
    margin-bottom: 25px;
}

.song-downloads {
    font-size: 0.8rem;
    color: var(--dark-color) !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.song-card:hover .song-cover {
    transform: scale(1.1);
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold) !important;
    color: var(--dark-color) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 3;
}

/* ========== FOOTER STYLES ========== */
footer {
    background: linear-gradient(135deg, #1a1a1a, #25c970);
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--gold);
}

/* ========== TABLE STYLES ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

/* ========== ALERT STYLES ========== */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== AD CONTAINER STYLES ========== */
.ad-container {
    position: relative;
    margin: 1.5rem 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: auto;
    display: block;
}

.ad-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-bottom-left-radius: 4px;
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: var(--danger-color);
}

/* ========== ARTIST CTA STYLES ========== */
.artist-cta {
    background: linear-gradient(135deg, #1a1a1a, #25c970);
    color: white;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.cta-text p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stat i {
    color: var(--gold);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: var(--gold) !important;
    color: var(--dark-color) !important;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--gold);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--gold) !important;
    color: var(--dark-color) !important;
}

/* ========== STATS GRID STYLES ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(187deg, #1a1a1a, #25c970);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card.highlight {
    background: var(--gold) !important;
    color: var(--dark-color) !important;
}

.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.song-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    width: 100%;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== SUPPORT SECTION STYLES ========== */
.support-section {
    clear: both;
    margin-top: 30px;
}

.ad-support, .donation-support {
    background: rgb(240, 236, 206);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .stats-grid, .song-list {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        padding: 0 1rem;
    }

    .cta-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-outline {
        width: 100%;
    }
    
    .support-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .song-grid {
        grid-template-columns: 1fr;
    }
}
