/* Müzik Atölyesi - Premium CSS */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-bg: #0f0f1a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --piano-color: #3b82f6;
    --darbuka-color: #f97316;
    --violin-color: #a855f7;
    --guitar-color: #22c55e;
    --baglama-color: #eab308;
    --xylophone-color: #ec4899;
    --drums-color: #ef4444;
    --flute-color: #06b6d4;
    --ud-color: #d97706;
    --def-color: #8b5cf6;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--dark-bg);
    background-image:
        radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
}

.header {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* School Branding */
.school-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.school-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.school-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 140px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.control-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.instruments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instrument-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.instrument-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.instrument-card:hover::before {
    transform: scaleX(1);
}

.instrument-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.instrument-icon {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.instrument-card:hover .instrument-icon {
    transform: scale(1.2) rotate(5deg);
}

.instrument-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.instrument-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.instrument-area {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    min-height: 500px;
}

.instrument-area.hidden {
    display: none;
}

.instrument-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.back-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.current-instrument {
    font-size: 1.5rem;
    font-weight: 700;
}

.instrument-controls {
    display: flex;
    gap: 0.5rem;
}

.record-btn.recording {
    background: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.instrument-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.instrument-container.hidden {
    display: none;
}

.hint {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.hidden {
    display: none !important;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(15, 15, 26, 0.9);
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
}

/* PIANO */
.piano {
    width: 100%;
    max-width: 900px;
}

.piano-keys {
    display: flex;
    position: relative;
    height: 220px;
}

.key {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.key.white {
    flex: 1;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    margin: 0 2px;
    z-index: 1;
}

.key.white:hover {
    background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
}

.key.white.active {
    background: linear-gradient(to bottom, #d0d0ff, #b0b0ff);
    transform: translateY(3px);
}

.key.white span {
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
}

.key.black {
    position: absolute;
    width: 40px;
    height: 140px;
    background: linear-gradient(to bottom, #333, #111);
    border-radius: 0 0 6px 6px;
    z-index: 2;
}

.key.black:hover {
    background: linear-gradient(to bottom, #444, #222);
}

.key.black.active {
    background: linear-gradient(to bottom, #5050aa, #3030aa);
    transform: translateY(2px);
}

/* DARBUKA */
.darbuka {
    width: 100%;
    max-width: 400px;
}

.darbuka-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.darbuka-zone {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.darbuka-zone.dum {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #d97706 0%, #92400e 100%);
    border: 4px solid #78350f;
}

.darbuka-zone.tek {
    width: 280px;
    height: 80px;
    background: linear-gradient(to right, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
    border: 3px solid #92400e;
}

.darbuka-zone.ka {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #fbbf24 0%, #d97706 100%);
    border: 3px solid #b45309;
}

.darbuka-zone:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.5);
}

.darbuka-zone:active,
.darbuka-zone.active {
    transform: scale(0.95);
}

.darbuka-zone span {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.darbuka-zone small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* VIOLIN */
.violin {
    width: 100%;
    max-width: 500px;
}

.violin-strings {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-radius: 20px;
}

.violin-string {
    width: 30px;
    height: 300px;
    background: linear-gradient(to bottom, #ddd 0%, #999 50%, #ddd 100%);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    transition: var(--transition-smooth);
    position: relative;
}

.violin-string::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(to bottom, #c0c0c0 0%, #808080 50%, #c0c0c0 100%);
    border-radius: 2px;
}

.violin-string:hover {
    transform: scaleX(1.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.violin-string:active,
.violin-string.active {
    animation: vibrate 0.1s linear infinite;
}

@keyframes vibrate {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.string-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* GUITAR */
.guitar {
    width: 100%;
    max-width: 600px;
}

.guitar-body {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border-radius: 30px;
    padding: 2rem 3rem;
}

.guitar-strings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guitar-string {
    height: 40px;
    background: linear-gradient(to bottom, #fbbf24 0%, #d97706 50%, #fbbf24 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding-left: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    color: #333;
}

.guitar-string:hover {
    transform: scaleY(1.2);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.guitar-string:active,
.guitar-string.active {
    animation: string-vibrate 0.15s linear infinite;
}

@keyframes string-vibrate {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* BAGLAMA */
.baglama {
    width: 100%;
    max-width: 600px;
}

.baglama-body {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-radius: 30px 30px 100px 100px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.baglama-strings {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.baglama-string-group {
    flex: 1;
    max-width: 150px;
}

.baglama-string {
    height: 200px;
    background: linear-gradient(to right, #fef3c7 0%, #fcd34d 50%, #fef3c7 100%);
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    color: #713f12;
    position: relative;
}

.baglama-string::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    width: 3px;
    height: 75%;
    background: #b45309;
    transform: translateX(-50%);
}

.baglama-string:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
}

.baglama-string:active,
.baglama-string.active {
    animation: vibrate 0.1s linear infinite;
}

.baglama-frets {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.fret {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #713f12;
    transition: var(--transition-smooth);
}

.fret:hover {
    background: rgba(255, 255, 255, 0.5);
}

.fret.active {
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

/* XYLOPHONE */
.xylophone {
    width: 100%;
    max-width: 800px;
}

.xylophone-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 2rem;
}

.xylophone-bar {
    width: 70px;
    border-radius: 8px 8px 30px 30px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    transition: var(--transition-smooth);
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.xylophone-bar:nth-child(1) {
    height: 250px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.xylophone-bar:nth-child(2) {
    height: 230px;
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

.xylophone-bar:nth-child(3) {
    height: 210px;
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
}

.xylophone-bar:nth-child(4) {
    height: 190px;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.xylophone-bar:nth-child(5) {
    height: 170px;
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
}

.xylophone-bar:nth-child(6) {
    height: 150px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.xylophone-bar:nth-child(7) {
    height: 130px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.xylophone-bar:nth-child(8) {
    height: 110px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.xylophone-bar:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.xylophone-bar:active,
.xylophone-bar.active {
    transform: scale(0.95);
}

/* DRUMS */
.drums {
    width: 100%;
    max-width: 700px;
}

.drum-kit {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.drum {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.drum.hihat {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
}

.drum.crash {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    justify-self: center;
}

.drum.ride {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #f59e0b 0%, #92400e 100%);
    justify-self: end;
}

.drum.tom1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
}

.drum.snare {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%);
    justify-self: center;
}

.drum.tom2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
    justify-self: end;
}

.drum.kick {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #1e1e1e 0%, #0a0a0a 100%);
    border: 4px solid #333;
    justify-self: center;
}

.drum:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.drum:active,
.drum.active {
    transform: scale(0.9);
}

/* FLUTE */
.flute {
    width: 100%;
    max-width: 700px;
}

.flute-body {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 3rem;
    background: linear-gradient(to bottom, #a8a29e 0%, #78716c 50%, #a8a29e 100%);
    border-radius: 50px;
}

.flute-hole {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #1c1917 0%, #0c0a09 100%);
    border: 3px solid #78716c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: transparent;
    font-weight: 700;
}

.flute-hole:hover {
    background: radial-gradient(circle, #06b6d4 0%, #0e7490 100%);
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.flute-hole:active,
.flute-hole.active {
    background: radial-gradient(circle, #22d3ee 0%, #06b6d4 100%);
    transform: scale(0.9);
    color: white;
}

/* UD */
.ud {
    width: 100%;
    max-width: 500px;
}

.ud-body {
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    padding: 3rem;
}

.ud-strings {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.ud-string {
    width: 50px;
    height: 200px;
    background: linear-gradient(to bottom, #fef3c7 0%, #f59e0b 50%, #fef3c7 100%);
    border-radius: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    color: #78350f;
}

.ud-string:hover {
    transform: scaleX(1.3);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.5);
}

.ud-string:active,
.ud-string.active {
    animation: vibrate 0.1s linear infinite;
}

/* DEF */
.def {
    width: 100%;
    max-width: 400px;
}

.def-body {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.def-surface {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    border: 15px solid #78350f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 4rem;
}

.def-surface small {
    font-size: 1rem;
    color: #78350f;
    font-weight: 600;
}

.def-surface:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
}

.def-surface:active,
.def-surface.active {
    transform: scale(0.95);
}

.def-rim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.zil {
    position: absolute;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition-smooth);
}

.zil:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.zil:nth-child(2) {
    top: 25%;
    right: 0;
    transform: translate(50%, -50%);
}

.zil:nth-child(3) {
    bottom: 25%;
    right: 0;
    transform: translate(50%, 50%);
}

.zil:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.zil:nth-child(5) {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.zil:hover {
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .instruments-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .piano-keys {
        height: 180px;
    }

    .key.black {
        width: 30px;
        height: 100px;
    }

    .xylophone-bar {
        width: 50px;
    }
}