/* Tamilanda Music Browser - Premium Redesign with Complementary Colors */
:root {
    /* Original Gold Palette */
    --primary: #D4AF37;
    --primary-dark: #B8860B;
    --primary-light: #E6D8A5;
    --primary-very-light: #F5F1E3;
    --text: #333333;
    --text-light: #666666;
    --bg: #F9F7F0;
    --card-bg: #FFFFFF;
    --border: #E0D8C0;
    --shadow: rgba(212, 175, 55, 0.1);

    /* New Complementary Purple Accents */
    --accent: #5A4D8B;
    --accent-light: #8A7DB8;
    --accent-very-light: #E5E1F5;
    --accent-shadow: rgba(90, 77, 139, 0.15);

    /* Utilities */
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --radius: 12px;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    text-align: center;
    margin: 40px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-very-light), var(--card-bg));
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.header h1 {
    color: var(--primary-dark);
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-light);
    margin: 10px auto 0;
    max-width: 600px;
    font-size: 1.1em;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 24px;
    padding-left: 50px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-very-light), 0 5px 15px var(--accent-shadow);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 18px;
}

.search-results-container {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

/* Content Styles */
.track-cover-container,
.album-cover-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-very-light), var(--card-bg));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    border: none;
    transition: var(--transition);
    position: relative;
}

.track-cover-container:hover,
.album-cover-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-shadow);
}

.track-cover-container::after,
.album-cover-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.track-cover-container {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.album-cover-container {
    width: 100%;
    height: 240px;
    margin-bottom: 20px;
}

.track-cover,
.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-shadow);
}

/* Pagination */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    width: 100%;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-link:hover {
    background-color: var(--primary-very-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px var(--accent-shadow);
}

.page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 8px var(--accent-shadow);
}

.page-item.disabled .page-link {
    color: var(--border);
    pointer-events: none;
    background-color: var(--bg);
    box-shadow: none;
    transform: none;
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-light);
    padding: 0 5px;
}

.pagination-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95em;
    color: var(--text-light);
    width: 100%;
}

/* Track List */
.track-list {
    list-style: none;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.track-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.track-item:hover {
    background-color: var(--primary-very-light);
    transform: translateX(5px);
}

.track-item:last-child {
    border-bottom: none;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.progress-bar {
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--primary-dark));
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -10px 30px var(--accent-shadow);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--primary), var(--accent-light));
}

.footer a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .header {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .track-item {
        padding: 12px 15px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }
    
    .track-cover-container {
        width: 240px;
        height: 240px;
    }
    
    .album-cover-container {
        height: 200px;
    }
    
    .search-input {
        padding: 12px 20px;
        padding-left: 45px;
    }
    
    .player-controls {
        flex-wrap: wrap;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-results-container {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.now-playing {
    animation: pulse 2s infinite ease-in-out;
}

/* Add this to your style.css file */
.sort-controls {
    margin: 15px 0 20px 0;
    padding: 8px 15px;
    background: #f5f7fa;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sort-controls span {
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.sort-controls a {
    color: #4a6fa5;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sort-controls a:hover {
    background: #e1e8f0;
}

.sort-controls a.active {
    background: #4a6fa5;
    color: white;
    font-weight: 500;
    border-color: #3a5a80;
}

