:root {
    --primary-color: #ffb800;
    /* Cifra Club Yellow */
    --primary-dark: #e6a600;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #1a1d23;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-full: 9999px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo i {
    color: var(--primary-color);
    font-size: 32px;
}

.logo span span {
    color: var(--primary-color);
}

/* Search Bar Styles */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 100;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--radius-full);
    padding: 6px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.1);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    color: var(--text-main);
    background: transparent;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Results Dropdown */
.results-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: none;
    /* Controlled by JS */
    animation: slideDown 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.section-header {
    padding: 16px 20px;
    background: #fbfbfb;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header span {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.section-header .count {
    color: var(--primary-color);
    font-weight: 500;
}

.results-list {
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.result-item:hover {
    background: #fff9ea;
}

.artist-avatar {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-info {
    display: flex;
    flex-direction: column;
}

.artist-name {
    font-weight: 500;
    font-size: 15px;
}

.artist-name b {
    color: var(--primary-color);
}

.artist-genre {
    font-size: 13px;
    color: var(--text-muted);
}

.results-footer {
    padding: 12px;
    text-align: center;
    background: #fbfbfb;
    border-top: 1px solid var(--border-color);
}

.results-footer button {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.results-footer button:hover {
    background: var(--border-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    opacity: 0.8;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h2 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* loader */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 184, 0, 0.1);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    animation: spin 0.8s linear infinite;
}

/* Artist Detail Card */
.artist-card {
    max-width: 600px;
    margin: 40px auto;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.card-header {
    background: linear-gradient(135deg, #fff9ea 0%, #ffffff 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
}

.large-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2);
}

.header-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.badge {
    background: rgba(255, 184, 0, 0.1);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.card-body {
    padding: 30px 40px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-muted);
}

.info-row i {
    font-size: 22px;
    color: var(--primary-color);
}

.info-row strong {
    color: var(--text-main);
    margin-left: 5px;
}

/* --- RESPONSIVIDADE (MOBILE FIRST) --- */
@media (max-width: 768px) {
    header {
        padding: 40px 0;
        gap: 30px;
    }

    .card-header {
        padding: 30px;
        gap: 20px;
    }

    .large-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .header-info h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 30px 0;
    }

    .logo {
        font-size: 22px;
    }

    .search-input-wrapper input {
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .header-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-body {
        padding: 20px;
    }

    .info-row {
        font-size: 14px;
    }
}