/* Spotify Mix Font */
@font-face {
    font-family: 'Spotify Mix';
    src: url('font/SpotifyMix-Regular.woff2') format('woff2'),
         url('font/SpotifyMix-Regular.woff') format('woff'),
         url('font/SpotifyMix-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('font/SpotifyMix-Bold.woff2') format('woff2'),
         url('font/SpotifyMix-Bold.woff') format('woff'),
         url('font/SpotifyMix-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('font/SpotifyMix-Medium.woff2') format('woff2'),
         url('font/SpotifyMix-Medium.woff') format('woff'),
         url('font/SpotifyMix-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Spotify Mix', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: black;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0;
}

.header-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #1DB954;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: -0.03em;
}

.title i {
    font-size: 2.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.main {
    flex: 1;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remix-btn {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.remix-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
}

.remix-btn:active {
    transform: translateY(0);
}

.genre-count {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.genre-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1DB954, #1ed760, #1DB954);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-20px) scale(1.16);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.3);
    border-color: #1DB954;
}

.genre-card:hover::before {
    transform: scaleX(1);
}

.genre-card:active {
    transform: translateY(-6px) scale(1.03);
}

.genre-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.genre-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.genre-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1DB954;
    font-weight: 500;
    font-size: 0.9rem;
}

.genre-action i {
    font-size: 0.8rem;
}

.genre-action .fa-spotify {
    font-size: 1rem;
    color: #1DB954;
    transition: transform 0.3s ease;
}

.genre-card:hover .genre-action .fa-spotify {
    transform: scale(1.3);
}

.loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1DB954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-link {
    color: #1DB954;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: #1ed760;
    border-bottom-color: #1ed760;
    transform: translateY(-1px);
}

.footer-link:active {
    transform: translateY(0);
}

.mobile-refresh {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        margin-bottom: 15px;
    }
    
    .controls {
        margin-bottom: 15px;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .title i {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .genre-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .genre-card {
        padding: 20px;
    }
    
    .genre-name {
        font-size: 1.2rem;
    }
    
    .mobile-refresh {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .genre-card {
        padding: 18px;
    }
    
    .genre-name {
        font-size: 1.1rem;
    }
}

/* Animation for card entrance */
.genre-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.genre-card.animated {
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delay for cards */
.genre-card:nth-child(1) { animation-delay: 0.1s; }
.genre-card:nth-child(2) { animation-delay: 0.2s; }
.genre-card:nth-child(3) { animation-delay: 0.3s; }
.genre-card:nth-child(4) { animation-delay: 0.4s; }
.genre-card:nth-child(5) { animation-delay: 0.5s; }
.genre-card:nth-child(6) { animation-delay: 0.6s; }
.genre-card:nth-child(7) { animation-delay: 0.7s; }
.genre-card:nth-child(8) { animation-delay: 0.8s; }
.genre-card:nth-child(9) { animation-delay: 0.9s; }
.genre-card:nth-child(10) { animation-delay: 1.0s; }
.genre-card:nth-child(11) { animation-delay: 1.1s; }
.genre-card:nth-child(12) { animation-delay: 1.2s; }

/* Search Container Styles */
.search-container {
    margin-bottom: 20px;
    text-align: center;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    font-size: 1.1rem;
    border: 2px solid rgba(29, 185, 84, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
}

.search-input::selection {
    background: rgba(29, 185, 84, 0.3);
    color: white;
}

.search-input::-moz-selection {
    background: rgba(29, 185, 84, 0.3);
    color: white;
}

.search-input:focus {
    outline: none;
    border-color: #1DB954;
    background: rgba(255, 255, 255, 0.15);
    -webkit-background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
    -webkit-box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #1DB954;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.clear-search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-stats {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.search-stats span {
    color: #1DB954;
    font-weight: 600;
}

/* Search Highlight Styles */
.search-highlight {
    background: rgba(29, 185, 84, 0.3);
    color: #1DB954;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Show More Button Styles */
.show-more-btn {
    background: rgba(29, 185, 84, 0.1);
    border: 2px solid rgba(29, 185, 84, 0.3);
    color: #1DB954;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin: 20px auto;
    display: block;
    font-family: inherit;
}

.show-more-btn:hover {
    background: rgba(29, 185, 84, 0.2);
    border-color: #1DB954;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 185, 84, 0.2);
}

.show-more-btn:active {
    transform: translateY(0);
}

.show-more-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateY(2px);
}

/* Subtitle Styles for Search Version */
.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 5px;
    text-align: center;
}

/* Chrome-specific fixes for search input */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Responsive Search Styles */
@media (max-width: 768px) {
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-input {
        padding: 12px 45px 12px 45px;
        font-size: 1rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .search-icon {
        left: 15px;
        font-size: 1rem;
    }
    
    .clear-search-btn {
        right: 12px;
        width: 28px;
        height: 28px;
    }
    
    .show-more-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 10px 40px 10px 40px;
        font-size: 0.95rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .search-icon {
        left: 12px;
        font-size: 0.9rem;
    }
    
    .clear-search-btn {
        right: 10px;
        width: 26px;
        height: 26px;
    }
    
    .show-more-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
} 