/*
Theme Name: South Sangeeth Theme
Description: A modern, premium, dark-mode theme for music metadata.
Author: Antigravity
Version: 1.0
Text Domain: south-sangeeth
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-hover: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --card-radius: 16px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Safety Reset for Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #3b82f6;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Layout */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.main-navigation a:hover {
    opacity: 1;
}

.site-footer {
    margin-top: 5rem;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Cards (Songs, Albums, Artists) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.item-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.item-card .card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    background: #1e293b;
}

.item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-card:hover img {
    transform: scale(1.05);
}

.item-card .card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.item-meta a {
    color: #60a5fa;
}

.item-meta a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Single Song Page */
.single-hero {
    display: flex;
    gap: 3rem;
    margin: 4rem 0;
    align-items: center;
}

.single-hero-image {
    width: 300px;
    height: 300px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.single-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.single-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.single-meta-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.single-meta-list .meta-label {
    width: 100px;
    color: var(--text-secondary);
    font-weight: 500;
}

.single-meta-list .meta-value {
    font-weight: 600;
}

/* Tabbed Interface */
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.tab-btn.active {
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tab-content {
    display: none;
    animation: fadeIn var(--transition-smooth);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.album-section {
    margin-bottom: 4rem;
}

.album-section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.album-section-cover {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.song-list {
    list-style: none;
}

.song-list-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-fast);
}

.song-list-item:hover {
    background: var(--glass-bg);
    border-radius: 8px;
}

.song-list-title {
    font-weight: 500;
}

.song-list-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .single-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .single-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .single-meta-list li {
        justify-content: center;
    }
    
    .single-meta-list .meta-label {
        width: auto;
        margin-right: 1rem;
    }

    .main-navigation {
        display: none; /* Simple hiding for now */
    }
}
