:root {
    --primary-color: #2c3e50; /* Koyu mavi - Logo ve metinler için */
    --secondary-color: #f7971e; /* Turuncu - Ana buton vurgusu */
    --accent-color: #ffd200; /* Sarı - Ana buton vurgusu */
    --background-color: #f4f4f4; /* Ana arka plan */
    --surface-color: #ffffff; /* Kartlar, header gibi yüzeyler */
    --text-color: #333333; /* Genel metin rengi */
    --light-text-color: #ffffff; /* Koyu arka planlar üzerindeki metin */
    --border-color: #dddddd; /* Kenarlıklar */
    --header-bg: var(--surface-color);
    --footer-bg: #333333; /* Koyu gri - Footer arka planı */
    --modal-close-bg: #ff7e5f;
    --modal-close-hover-bg: #feb47b;
    --button-text-color: black; /* Buton üzerindeki yazı rengi */
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
}
.header {
    background-color: var(--header-bg);
    padding: 15px 20px 20px; /* Adjusted bottom padding */
    display: flex;
    flex-direction: column; /* Stack content row and button */
    align-items: center; /* Center button wrapper */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content-row { /* Styles for the row containing search, logo, menu */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px; /* Space between top row and the new button */
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
    justify-content: flex-start;
}

.header-center {
    flex: 2; /* Logo can take more space if needed */
    justify-content: center;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
}

.search-icon, .menu-icon {
    font-size: 24px; /* Placeholder size */
    cursor: pointer;
    padding: 5px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--background-color); /* Adjusted to use variable */
}
.content-section {
    min-height: 300px; /* Example min-height, content will scroll if taller */
    max-height: 500px; /* Optional: limits how tall the section can grow */
    overflow-y: auto; /* Add scroll for vertical overflow */
    margin-bottom: 20px;
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.footer {
    background-color: var(--footer-bg);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}
/* Search bar styles */
#search-bar {
    display: none; /* Initially hidden */
    width: 100%;
    align-items: center;
}
#search-input-field {
    flex-grow: 1;
    padding: 8px 10px; /* Adjusted padding */
    border: 1px solid var(--border-color); /* Softer border */
    border-radius: 4px;
    margin-right: 8px; /* Space before close icon */
    font-size: 1em; /* Consistent font size */
    line-height: 1.5; /* Improved text readability */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
/* Styles for when search is active */
.header.search-active #search-open-icon {
    display: none;
}
.header.search-active #search-bar {
    display: flex;
}
.header.search-active .header-center, /* Target by class for consistency */
.header.search-active .header-right { /* Target by class for consistency */
    display: none;
}
/* Ensure .header-left takes up all space when search is active */
.header.search-active .header-left {
    flex-grow: 3; /* Give it higher grow factor or ensure others are display:none */
     /* If header-center and header-right are display:none, this might not be strictly needed if flex-basis is 0 or auto for all */
}
/* Navigation Menu Styles */
.nav-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 115px; /* Adjusted top position due to increased header height */
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999; /* Below header but above content */
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}
.nav-menu.open {
    display: block;
}
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.nav-menu ul li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}
.nav-menu ul li a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}
/* Basic responsive adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 22px;
    }
    .search-icon, .menu-icon {
        font-size: 20px;
    }
    .header-center {
         /* On smaller screens, allow logo to shrink if space is tight */
        flex: 1.5;
    }
}
 @media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    .logo {
        font-size: 18px;
    }
     .header-center {
        /* Give more definite space to icons by reducing logo's flexible growth */
        order: 2; /* Center logo between icons */
    }
    .header-left {
        order: 1;
    }
    .header-right {
        order: 3;
    }
}
.open-player-button-wrapper {
    /* Container for the button, centering is handled by .header's align-items: center */
}
.open-player-btn {
    padding: 10px 25px;
    font-size: 1.1em;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--button-text-color); /* Yazı rengi siyah olarak değiştirildi */
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); /* New vibrant gradient */
    border: none;
    border-radius: 30px; /* More rounded */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0,0,0,0.3), 0 0 10px var(--secondary-color-transparent, rgba(247, 151, 30, 0.3)); /* Added fallback */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
}
.open-player-btn:hover, .open-player-btn:focus {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color)); /* Reverse new gradient */
    box-shadow: 0 7px 14px rgba(0,0,0,0.2), 0 0 15px var(--secondary-color-transparent-strong, rgba(247, 151, 30, 0.5)); /* Added fallback */
    transform: translateY(-3px) scale(1.05); /* Keep scale effect on hover/focus */
    outline: none;
    animation: none; /* Pause animation on hover/focus to prevent conflict */
}
.open-player-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* RitimPlayer Modal Styles */
#ritimplayer-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 2000; /* Above everything else */
    justify-content: center;
    align-items: center;
}
#ritimplayer-modal.active {
    display: flex; /* Use flex to center content if needed, or just block */
}
#ritimplayer-iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--surface-color); /* Background for the iframe area */
}
#ritimplayer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
#close-ritimplayer-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--modal-close-bg); /* Consistent with button theme */
    color: var(--light-text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 2010; /* Above iframe content */
}
#close-ritimplayer-btn:hover {
    background-color: var(--modal-close-hover-bg); /* Lighter shade on hover */
    transform: scale(1.1);
}
.warning-note {
    background-color: #fff3cd; /* Keeping specific warning colors for now */
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.warning-note strong {
    color: #664d03;
}