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

:root {
    --bg-dark: #07090F;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-main: #FFFFFF;
    --text-muted: #8E96B0;
    --color-cyan: #00F0FF;
    --color-cyan-glow: rgba(0, 240, 255, 0.3);
    --color-purple: #8B5CF6;
    --color-purple-glow: rgba(139, 92, 246, 0.3);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    padding-bottom: 100px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Typography */
.text-cyan { color: var(--color-cyan); }
.text-purple { color: var(--color-purple); }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 8px; /* Slightly squarer for a modern edgy look */
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-cyan {
    background-color: var(--color-cyan);
    color: #000;
    box-shadow: 0 4px 15px var(--color-cyan-glow);
}
.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    background-color: #33F5FF;
}

.btn-purple {
    background-color: var(--color-purple);
    color: #fff;
    box-shadow: 0 4px 15px var(--color-purple-glow);
}
.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    background-color: #9D74F7;
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass-hover);
}

/* Navbar */
.navbar {
    background: rgba(7, 9, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { 
    color: var(--text-main); 
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.search-bar {
    position: relative;
}
.search-bar svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-bar input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    padding: 10px 16px 10px 40px;
    border-radius: 8px;
    color: white;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s;
}
.search-bar input:focus {
    background: rgba(255,255,255,0.06);
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px var(--color-cyan-glow);
}

.action-icon {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-icon:hover {
    color: var(--text-main);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 40px;
    transition: background 0.2s;
}
.user-profile:hover {
    background: rgba(255,255,255,0.05);
}
.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
}
.user-profile span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: none;
}
@media(min-width: 768px) {
    .user-profile span { display: block; }
}

/* Beat Cards */
.beat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.beat-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.beat-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.beat-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.beat-card:hover .beat-cover img {
    transform: scale(1.05);
}
.beat-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.beat-card:hover .beat-cover-overlay {
    opacity: 1;
}
.play-btn-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-cyan);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--color-cyan-glow);
}
.beat-card:hover .play-btn-large {
    transform: translateY(0);
}
.play-btn-large:hover {
    transform: scale(1.1) !important;
}

.beat-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.beat-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.beat-producer {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.beat-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}
.beat-meta-tag {
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.beat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-glass);
    padding-top: 12px;
}
.beat-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-cyan);
}
.cart-btn-small {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.cart-btn-small:hover {
    background: var(--color-purple);
    border-color: var(--color-purple);
    box-shadow: 0 0 15px var(--color-purple-glow);
}

/* Global Player Footer */
.global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

/* Utilities */
.grid { display: grid; }
.gap-6 { gap: 24px; }
.mt-12 { margin-top: 48px; }
.mb-12 { margin-bottom: 48px; }

/* Formulários VIP */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 4px var(--color-cyan-glow);
    background: rgba(0, 0, 0, 0.6);
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E96B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    background: var(--bg-dark);
    color: white;
}

/* Custom Dropdown (Premium) */
.custom-dropdown-container {
    position: relative;
    width: 100%;
}

.custom-dropdown-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 8px 16px;
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.custom-dropdown-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.custom-dropdown-button.is-open {
    border: 1px solid #ff00ff !important;
    color: #ff00ff !important;
    box-shadow: 0 0 10px rgba(255,0,255,0.2);
}

.custom-dropdown-icon {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: 12px;
}

.custom-dropdown-button.is-open .custom-dropdown-icon {
    color: #ff00ff !important;
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    background: #1a1a24;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 8px 0;
    z-index: 100;
    overflow-y: auto;
    max-height: 250px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Scrollbar Customizada para o Menu do Dropdown */
.custom-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}
.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: #ff00ff;
    border-radius: 10px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #cc00cc;
}

.custom-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #aaa;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.custom-dropdown-item.is-selected {
    color: white;
}
