/*Melodi Rotası Main CSS*/

/* 1. FONT & DEĞİŞKENLER */
@import url("https://fonts.googleapis.com/css?family=Raleway:200,700|Source+Sans+Pro:300,600");

:root {
    --bg: #1e2030;
    --card: #2a2d3e;
    --text: #f0f0f0;
    --border: rgba(255, 255, 255, 0.12);
    --cyan: #22C9A8;
    --red: #e63946;
    --gold: #C9A84C;
}

/* 2. SIFIRLAMA & TEMEL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1c1e26;
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1fb899;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Source Sans Pro", sans-serif;
    background: linear-gradient(135deg, #2e3141 0%, #1c1e26 100%);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* 3. TİPOGRAFİ */
h1,
h2,
h3 {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    border-bottom: 2px solid var(--border);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

/* 4. NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(46, 49, 65, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--cyan), #a78fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    background: linear-gradient(90deg, var(--cyan), #a78fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.7;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--cyan);
}

/* 5. HERO & VIDEO */
.hero {
    padding: 4rem 1rem;
    text-align: center;
    animation: fadeInUp 0.8s ease both;
}

.video-wrapper video {
    width: 100%;
    max-width: 1100px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 6. MOOD SECTION */
.mood-section {
    padding: 4rem 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.9s ease both;
}

.mood-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.mood-card {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mood-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(41, 219, 183, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mood-card:hover::before {
    opacity: 1;
}

.mood-card i {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mood-card span {
    transition: color 0.3s ease;
    font-weight: 600;
}

.mood-card:hover {
    background: #fff;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(41, 219, 183, 0.25);
}

.mood-card:hover * {
    color: var(--bg);
}

.mood-card:hover i {
    transform: scale(1.15);
}

/* 7. PAGE HEADER */
.page-header {
    animation: fadeInUp 0.7s ease both;
}

.page-header h2 {
    position: relative;
    display: inline-block;
}

.page-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    margin-top: 8px;
    border-radius: 2px;
}

/* 8. GENRES GRID */
.genres-page .container {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 1rem;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    animation: fadeInUp 0.8s ease both;
}

.genre-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border-top: 5px solid var(--cyan);
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.genre-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.genre-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card);
}

.card-content h3 {
    font-size: 1.1rem;
}

.card-content p {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Buton */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    font-family: "Source Sans Pro", sans-serif;
    letter-spacing: 0.05em;
    align-self: flex-start;
    margin-top: auto;
}

.btn:hover {
    background: var(--cyan);
    color: var(--bg);
    transform: translateY(-2px);
}

/* 9. MODAL & AURA EFEKTLERİ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 18px;
    max-width: 750px;
    width: 95%;
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    transition: all 0.5s ease;
    animation: fadeInUp 0.4s ease both;
}

/* Aura Efektleri */
.modal-content.mood-dinamik {
    border-color: #FF4500;
    box-shadow: 0 0 50px rgba(255, 69, 0, 0.5);
}

.modal-content.mood-duygusal {
    border-color: #191970;
    box-shadow: 0 0 50px rgba(25, 25, 112, 0.6);
}

.modal-content.mood-huzurlu {
    border-color: #8B008B;
    box-shadow: 0 0 50px rgba(139, 0, 139, 0.5);
}

.modal-content.mood-yenilikci {
    border-color: #00CED1;
    box-shadow: 0 0 50px rgba(0, 206, 209, 0.4);
}

#modal-body {
    flex: 1;
    min-width: 0;
}

#m-genre-title {
    font-size: 1.4rem;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

.artist-display {
    margin-bottom: 1rem;
}

.artist-display h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    text-transform: none;
    letter-spacing: 0;
}

.artist-display p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 0;
    font-style: italic;
}

.m-external-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.m-info-section {
    margin-top: 1rem;
}

.instrument-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

#m-desc {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 0;
    line-height: 1.6;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--cyan);
    color: var(--bg);
    border-color: var(--cyan);
    transform: scale(1.08);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--red);
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.2s;
}

.platform-link.yt {
    background: #e60000;
    color: white;
}

.platform-link.spoty {
    background: #1DB954;
    color: white;
}

.platform-link:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* 10. FOOTER */
footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px solid var(--border);
}

/* 11. ANİMASYONLAR */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Section geçiş animasyonu */
.mood-section,
.genre-grid,
.page-header,
.hero {
    animation-fill-mode: both;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--cyan);
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--cyan);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 201, 168, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: #fff;
    transform: translateY(-5px);
}

/* Mood Chips (Filter) */
.mood-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.mood-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.mood-chip i {
    color: var(--cyan);
}
.mood-chip:hover {
    background: var(--cyan);
    color: var(--bg);
    border-color: var(--cyan);
    transform: translateY(-2px);
}
.mood-chip:hover i {
    color: var(--bg);
}

/* 12. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
        flex-direction: row;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        display: none;
        margin-top: 15px;
    }
    .nav-links.active {
        display: flex;
        animation: fadeInUp 0.3s ease both;
    }
    h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 2rem 1rem;
    }
    .mood-card {
        width: 130px;
        height: 130px;
    }
    .mood-card i {
        font-size: 2rem;
    }
    .mood-chips {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .mood-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .modal-content {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 15px;
    }
    #modal-body {
        text-align: center;
    }
    .m-external-links {
        justify-content: center;
    }
    .nav-btn {
        padding: 10px;
        font-size: 1.5rem;
    }
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .genre-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    .logo {
        font-size: 1.3rem;
    }
}