/* Choreogratis - Main Stylesheet */

/* CSS Variables for Theme Colors */
:root {
    /* Light mode colors */
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-bg: #f3f4f6;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-bg: #334155;
}

/* Base Styles with Theme Support */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--hover-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header theming */
header {
    background-color: var(--bg-primary) !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

header h1 a {
    color: #2563eb !important;
    letter-spacing:-1px;
}

header h1 a:hover {
    color: #1d4ed8 !important;
}

/* Footer choreogratis styling to match header */
footer a {
    color: #2563eb !important;
    letter-spacing: -1px;
}

footer a:hover {
    color: #1d4ed8 !important;
}

/* Override letter-spacing for footer links that shouldn't have it */
footer .text-gray-400 a {
    letter-spacing: normal !important;
    text-decoration: underline !important;
}

/* Text color overrides for dark mode */
[data-theme="dark"] .text-gray-900 { color: var(--text-primary) !important; }
[data-theme="dark"] .text-gray-500 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-gray-600 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-gray-700 { color: var(--text-tertiary) !important; }

/* Hover states for dark mode */
[data-theme="dark"] .hover\:bg-gray-100:hover { background-color: var(--hover-bg) !important; }
[data-theme="dark"] .hover\:text-gray-700:hover { color: var(--text-primary) !important; }

/* Track cards and content backgrounds */
[data-theme="dark"] .bg-white { 
    background-color: var(--bg-secondary) !important; 
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-gray-50 { 
    background-color: var(--bg-secondary) !important; 
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-gray-100 { 
    background-color: var(--hover-bg) !important; 
}

[data-theme="dark"] .bg-gray-200 { 
    background-color: var(--hover-bg) !important; 
}

/* Hover states for buttons and interactive elements in dark mode */
[data-theme="dark"] .hover\:bg-gray-50:hover { 
    background-color: var(--hover-bg) !important; 
}

[data-theme="dark"] .hover\:bg-gray-200:hover { 
    background-color: var(--border-color) !important; 
}

/* Border colors for dark mode */
[data-theme="dark"] .border-gray-300 { 
    border-color: var(--border-color) !important; 
}

/* Shadow adjustments for dark mode */
[data-theme="dark"] .shadow-md,
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-lg { 
    box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color) !important;
}

/* Dark mode toggle button styling */
[data-theme="dark"] #theme-toggle {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] #theme-toggle:hover {
    color: var(--text-primary) !important;
    background-color: var(--hover-bg) !important;
}

/* Animation Classes */
.playing {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .8;
    }
}

/* Custom Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1000;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* View Toggle Styles */
.view-toggle-btn {    
    color: white;
}
.togglegrey {
    background-color: var(--bg-primary);   
}

.view-toggle-btn.active {
    background-color: #2563eb !important;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.view-toggle-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark mode view toggle styling */
[data-theme="dark"] .view-toggle-btn.active {
    background-color: #2563eb !important;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

/* List View Styles */
.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.track-list-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s;
}

.track-list-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Heart Button Styles */
.heart-btn.favorited {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.heart-btn.favorited:hover {
    background-color: #fee2e2;
}

/* Playing Track Styles */
.track-playing {
    background-color: #fefce8 !important; /* Light yellow background */
    border-color: #fde047 !important; /* Slightly more visible border */
}

.track-playing:hover {
    background-color: #fef3c7 !important; /* Slightly darker yellow on hover */
}

/* Ensure playing styles override card styles */
[data-track-id].track-playing {
    background-color: #e8effe !important;
    border-color: #4790fd !important;
}

/* Dark mode playing track styles */
[data-theme="dark"] .track-playing {
    background-color: #1e3a8a !important; /* Dark blue background */
    border-color: #3b82f6 !important; /* Blue border */
}

[data-theme="dark"] .track-playing:hover {
    background-color: #1e40af !important; /* Slightly lighter blue on hover */
}

[data-theme="dark"] [data-track-id].track-playing {
    background-color: #1e3a8a !important; /* Dark blue background */
    border-color: #3b82f6 !important; /* Blue border */
}

/* Dark mode list view card styling */
[data-theme="dark"] .track-list-item {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Dark mode call-to-action card styling */
[data-theme="dark"] .bg-blue-50 {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-blue-50 h2 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-blue-50 p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .track-list-item:hover {
    background-color: var(--hover-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 1px 3px 0 var(--shadow-color) !important;
}

[data-theme="dark"] .track-list-item h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .track-list-item .text-gray-500 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .track-list-item .text-gray-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .track-list-item .bg-gray-100 {
    background-color: var(--hover-bg) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .track-list-item .bg-gray-100:hover {
    background-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .track-list-item .text-gray-700 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .track-list-item .heart-btn {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-tertiary) !important;
}

[data-theme="dark"] .track-list-item .heart-btn:hover {
    background-color: var(--hover-bg) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .track-list-item .heart-btn.favorited {
    background-color: #7f1d1d !important;
    border-color: #dc2626 !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .track-list-item .heart-btn.favorited:hover {
    background-color: #991b1b !important;
    color: #fecaca !important;
}

/* Mobile Responsive Styles */
@media (max-width: 599px) {
    /* Hide tagline on mobile */
    .mobile-hide-tagline {
        display: none !important;
    }
    
    /* Desktop navigation hidden on mobile */
    .desktop-nav {
        display: none !important;
    }
    
    /* Mobile navigation styles */
    .mobile-nav-toggle {
        display: block !important;
    }
    
    .mobile-nav-toggle svg {
        margin: 0 auto;
        display: block;
    }
    
    .mobile-nav-menu {
        display: none;
    }
    
    .mobile-nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }
    
    .mobile-nav-menu.active a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
        text-decoration: none;
        transition: background-color 0.2s;
    }
    
    .mobile-nav-menu.active a:hover {
        background-color: #f9fafb;
    }
    
    .mobile-nav-menu.active a:last-child {
        border-bottom: none;
    }
    
    /* Header adjustments for mobile */
    .mobile-header {
        position: relative;
    }
}

/* Search/Filters Section Background */
.search-filters-bg {
    background: linear-gradient(135deg, 
        #4f46e5 0%, 
        #7c3aed 20%, 
        #ec4899 40%, 
        #ef4444 60%, 
        #f59e0b 80%, 
        #10b981 100%);
    background-size: 300% 300%;
    animation: gradientShift 20s ease infinite;
    position: relative;
}

.search-filters-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(1px);
    border-radius: 0.5rem;
}

.search-filters-bg > * {
    position: relative;
    z-index: 1;
}

.search-filters-bg h2 {
    color: white !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-bottom: 1rem !important;
}

.search-filters-bg label,
.search-filters-bg .text-gray-700,
.search-filters-bg .text-gray-600,
.search-filters-bg .text-gray-500,
.search-filters-bg .text-blue-600,
.search-filters-bg a,
.search-filters-bg span {
    color: white !important;
}

/* Enhanced Form Controls Styling */
.search-filters-bg input[type="text"],
.search-filters-bg select {
    height: 42px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease-in-out !important;
}

.search-filters-bg input[type="text"]:focus,
.search-filters-bg select:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.search-filters-bg input[type="text"]:hover,
.search-filters-bg select:hover {
    border-color: #9ca3af !important;
}

/* Custom Select Dropdown Styling */
.search-filters-bg select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem 1.25rem !important;
    padding-right: 2.5rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Dark mode dropdown text styling */
[data-theme="dark"] .search-filters-bg select {
    color: #000000 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .search-filters-bg select option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

[data-theme="dark"] .search-filters-bg select:focus {
    color: #000000 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .search-filters-bg select:hover {
    color: #000000 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .search-filters-bg input[type="text"] {
    color: #000000 !important;
}

[data-theme="dark"] .search-filters-bg input::placeholder {
    color: #6b7280 !important;
}

/* Filter tags styling - always dark background */
.search-filters-bg .bg-gray-100,
.search-filters-bg .bg-blue-100,
.search-filters-bg .bg-blue-200,
.search-filters-bg .bg-blue-300,
.search-filters-bg .bg-blue-400,
.search-filters-bg .bg-blue-500,
.search-filters-bg .bg-blue-600,
.search-filters-bg .bg-blue-700,
.search-filters-bg .bg-blue-800,
.search-filters-bg .bg-blue-900,
.search-filters-bg .bg-indigo-100,
.search-filters-bg .bg-indigo-200,
.search-filters-bg .bg-indigo-300,
.search-filters-bg .bg-indigo-400,
.search-filters-bg .bg-indigo-500,
.search-filters-bg .bg-indigo-600,
.search-filters-bg .bg-indigo-700,
.search-filters-bg .bg-indigo-800,
.search-filters-bg .bg-indigo-900,
.search-filters-bg .bg-sky-100,
.search-filters-bg .bg-sky-200,
.search-filters-bg .bg-sky-300,
.search-filters-bg .bg-sky-400,
.search-filters-bg .bg-sky-500,
.search-filters-bg .bg-sky-600,
.search-filters-bg .bg-sky-700,
.search-filters-bg .bg-sky-800,
.search-filters-bg .bg-sky-900 {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.search-filters-bg .bg-gray-100:hover,
.search-filters-bg .bg-blue-100:hover,
.search-filters-bg .bg-blue-200:hover,
.search-filters-bg .bg-blue-300:hover,
.search-filters-bg .bg-blue-400:hover,
.search-filters-bg .bg-blue-500:hover,
.search-filters-bg .bg-blue-600:hover,
.search-filters-bg .bg-blue-700:hover,
.search-filters-bg .bg-blue-800:hover,
.search-filters-bg .bg-blue-900:hover,
.search-filters-bg .bg-indigo-100:hover,
.search-filters-bg .bg-indigo-200:hover,
.search-filters-bg .bg-indigo-300:hover,
.search-filters-bg .bg-indigo-400:hover,
.search-filters-bg .bg-indigo-500:hover,
.search-filters-bg .bg-indigo-600:hover,
.search-filters-bg .bg-indigo-700:hover,
.search-filters-bg .bg-indigo-800:hover,
.search-filters-bg .bg-indigo-900:hover,
.search-filters-bg .bg-sky-100:hover,
.search-filters-bg .bg-sky-200:hover,
.search-filters-bg .bg-sky-300:hover,
.search-filters-bg .bg-sky-400:hover,
.search-filters-bg .bg-sky-500:hover,
.search-filters-bg .bg-sky-600:hover,
.search-filters-bg .bg-sky-700:hover,
.search-filters-bg .bg-sky-800:hover,
.search-filters-bg .bg-sky-900:hover {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.search-filters-bg .bg-gray-100 .text-gray-600,
.search-filters-bg .bg-blue-100 .text-gray-600,
.search-filters-bg .bg-blue-200 .text-gray-600,
.search-filters-bg .bg-blue-300 .text-gray-600,
.search-filters-bg .bg-blue-400 .text-gray-600,
.search-filters-bg .bg-blue-500 .text-gray-600,
.search-filters-bg .bg-blue-600 .text-gray-600,
.search-filters-bg .bg-blue-700 .text-gray-600,
.search-filters-bg .bg-blue-800 .text-gray-600,
.search-filters-bg .bg-blue-900 .text-gray-600,
.search-filters-bg .bg-indigo-100 .text-gray-600,
.search-filters-bg .bg-indigo-200 .text-gray-600,
.search-filters-bg .bg-indigo-300 .text-gray-600,
.search-filters-bg .bg-indigo-400 .text-gray-600,
.search-filters-bg .bg-indigo-500 .text-gray-600,
.search-filters-bg .bg-indigo-600 .text-gray-600,
.search-filters-bg .bg-indigo-700 .text-gray-600,
.search-filters-bg .bg-indigo-800 .text-gray-600,
.search-filters-bg .bg-indigo-900 .text-gray-600,
.search-filters-bg .bg-sky-100 .text-gray-600,
.search-filters-bg .bg-sky-200 .text-gray-600,
.search-filters-bg .bg-sky-300 .text-gray-600,
.search-filters-bg .bg-sky-400 .text-gray-600,
.search-filters-bg .bg-sky-500 .text-gray-600,
.search-filters-bg .bg-sky-600 .text-gray-600,
.search-filters-bg .bg-sky-700 .text-gray-600,
.search-filters-bg .bg-sky-800 .text-gray-600,
.search-filters-bg .bg-sky-900 .text-gray-600 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.search-filters-bg .bg-gray-100 .text-gray-500,
.search-filters-bg .bg-blue-100 .text-gray-500,
.search-filters-bg .bg-blue-200 .text-gray-500,
.search-filters-bg .bg-blue-300 .text-gray-500,
.search-filters-bg .bg-blue-400 .text-gray-500,
.search-filters-bg .bg-blue-500 .text-gray-500,
.search-filters-bg .bg-blue-600 .text-gray-500,
.search-filters-bg .bg-blue-700 .text-gray-500,
.search-filters-bg .bg-blue-800 .text-gray-500,
.search-filters-bg .bg-blue-900 .text-gray-500,
.search-filters-bg .bg-indigo-100 .text-gray-500,
.search-filters-bg .bg-indigo-200 .text-gray-500,
.search-filters-bg .bg-indigo-300 .text-gray-500,
.search-filters-bg .bg-indigo-400 .text-gray-500,
.search-filters-bg .bg-indigo-500 .text-gray-500,
.search-filters-bg .bg-indigo-600 .text-gray-500,
.search-filters-bg .bg-indigo-700 .text-gray-500,
.search-filters-bg .bg-indigo-800 .text-gray-500,
.search-filters-bg .bg-indigo-900 .text-gray-500,
.search-filters-bg .bg-sky-100 .text-gray-500,
.search-filters-bg .bg-sky-200 .text-gray-500,
.search-filters-bg .bg-sky-300 .text-gray-500,
.search-filters-bg .bg-sky-400 .text-gray-500,
.search-filters-bg .bg-sky-500 .text-gray-500,
.search-filters-bg .bg-sky-600 .text-gray-500,
.search-filters-bg .bg-sky-700 .text-gray-500,
.search-filters-bg .bg-sky-800 .text-gray-500,
.search-filters-bg .bg-sky-900 .text-gray-500 {
    color: rgba(255, 255, 255, 0.7) !important;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced input styles for gradient background */
.search-filters-bg input,
.search-filters-bg select {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-filters-bg input:focus,
.search-filters-bg select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Composer Cards Mobile Optimization */
@media (max-width: 599px) {
    /* Hide commission link on mobile */
    .mobile-hide-commission {
        display: none !important;
    }
    
    /* Mobile composer card layout */
    .composer-card-mobile {
        padding: 1rem !important; /* Reduce padding */
    }
    
    .composer-header-mobile {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        margin-bottom: 1rem !important;
    }
    
    .composer-avatar-mobile {
        width: 3rem !important; /* 48px instead of 80px */
        height: 3rem !important;
        margin-right: 0.75rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .composer-avatar-mobile span {
        font-size: 1.25rem !important; /* Smaller text */
    }
    
    .composer-info-mobile {
        flex: 1;
        min-width: 0; /* Allow text to wrap */
    }
    
    .composer-info-mobile h3 {
        font-size: 1.125rem !important; /* Slightly smaller title */
        margin-bottom: 0.25rem !important;
    }
    
    .composer-bio-mobile {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .composer-buttons-mobile {
        gap: 0.5rem !important;
        margin-bottom: 0 !important;
    }
    
    .composer-buttons-mobile a {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
}

/* Desktop styles */
@media (min-width: 600px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    
    .mobile-nav-menu,
    .mobile-nav-menu.active {
        display: none !important;
    }
    
    .desktop-nav {
        display: flex !important;
    }
} 

[data-theme="dark"] .mobile-nav-menu.active {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color) !important;
}
[data-theme="dark"] .mobile-nav-menu.active a {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: transparent !important;
}
[data-theme="dark"] .mobile-nav-menu.active a:hover {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .mobile-nav-menu.active a:last-child {
    border-bottom: none !important;
} 

/* Blockquote styling */
.blockquote-text {
    color: #111827 !important; /* Dark text for light mode */
}

[data-theme="dark"] .blockquote-text {
    color: #cbd5e1 !important; /* Light text for dark mode */
}

/* Mobile optimizations for search/filters section */
@media (max-width: 599px) {
    .mobile-hide-tracks {
        display: none !important;
    }
    
    .mobile-hide-view-toggle {
        display: none !important;
    }
    .search-filters-bg h2 {
        font-size: 2rem !important;
    }
}

/* Authentication Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: var(--text-tertiary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

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

.tab-content {
    display: none;
}

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

.tab-content h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.tab-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-content input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-content input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tab-content button[type="submit"] {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.tab-content button[type="submit"]:hover {
    background-color: #1d4ed8;
}

.tab-content button[type="submit"]:disabled {
    background-color: var(--text-tertiary);
    cursor: not-allowed;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
}

.message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

[data-theme="dark"] .message.success {
    background-color: #14532d;
    color: #bbf7d0;
    border-color: #166534;
}

[data-theme="dark"] .message.error {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #dc2626;
}

/* Disabled button styles for download/favorite buttons */
.download-btn.disabled,
.favorite-btn.disabled,
.download-btn:disabled,
.favorite-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    background-color: #9ca3af !important;
    color: #6b7280 !important;
}

.download-btn.disabled:hover,
.favorite-btn.disabled:hover,
.download-btn:disabled:hover,
.favorite-btn:disabled:hover {
    background-color: #9ca3af !important;
    transform: none !important;
}

/* Auth section styling */
.auth-section {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .auth-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-section span {
        font-size: 0.75rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
} 