/* Reset & Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1db954;
    --secondary: #191414;
    --accent: #ff6b35;
    --dark: #121212;
    --light: #ffffff;
    --gray: #b3b3b3;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: rgba(25, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    -webkit-text-fill-color: var(--primary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
}

/* Main */
.main {
    padding: 2rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filtreler */
.time-filters {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
    border-radius: 25px;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    color: var(--light);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--light);
    font-weight: bold;
}

/* İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.2);
    border-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-info h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* İçerik Bölümü */
.content-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

/* Sanatçı Listesi */
.artist-list {
    display: grid;
    gap: 1rem;
}

.artist-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.artist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.artist-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    min-width: 40px;
}

.artist-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.artist-info {
    flex: 1;
}

.artist-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.artist-stats {
    color: var(--gray);
    font-size: 0.9rem;
}

.artist-time {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
}

/* Beat Maker */
.beatmaker-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.beatmaker-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.control-btn.play {
    background: var(--primary);
    color: var(--light);
}

.control-btn.stop {
    background: var(--accent);
    color: var(--light);
}

.control-btn.clear {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.control-btn.save {
    background: var(--gradient);
    color: var(--light);
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Tempo Kontrolü */
.tempo-control {
    margin-bottom: 2rem;
}

.tempo-control label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#tempoValue {
    color: var(--primary);
    font-weight: bold;
}

#tempoSlider {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

#tempoSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

/* Drum Pads */
.drum-pads {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pad-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 1rem;
}

.pad-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gray);
}

.drum-pad {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    font-size: 1.5rem;
}

.drum-pad:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.drum-pad:active,
.drum-pad.active {
    background: var(--primary);
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.5);
}

.drum-pad span {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Kayıtlı Beat'ler */
.saved-beats {
    margin-top: 3rem;
}

.saved-beats h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.beat-list {
    display: grid;
    gap: 1rem;
}

.beat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.beat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.beat-name {
    font-weight: bold;
}

.beat-actions {
    display: flex;
    gap: 0.5rem;
}

.beat-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: all 0.3s ease;
}

.beat-action-btn:hover {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pad-row {
        grid-template-columns: 80px 1fr;
    }

    .drum-pad {
        padding: 1.5rem;
    }

    .beatmaker-controls {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        text-align: center;
    }
}