/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

main {
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}
/* Navigation Bar Ayarları */
.navbar {
    position: fixed; /* Sticky navigation bar */
    top: 0;
    width: 100%; /* Full width */
    z-index: 1100;
    background-color: #121e2b; /* Navbar background */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
    display: flex; /* Align items horizontally */
    align-items: center;
    justify-content: space-between; /* Spread elements evenly */
    padding: 0 15px;
    height: 60px;
}

.left-section {
    display: flex;
    align-items: center; /* Sol bölümdeki öğeleri dikeyde ortalar */
    gap: 15px;
}

.menu {
    display: none; /* Hidden by default */
    position: fixed; /* Align relative to the screen */
    top: 60px; /* Position just below the navbar */
    left: 15px; /* Align with the left side */
    flex-direction: column;
    gap: 10px;
    background-color: #2d3e50; /* Menu background color */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transform: scaleY(0); /* Collapsed initially */
    transform-origin: top;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1000; /* Ensure it appears above other elements */
}

.menu.show {
    display: flex; /* Make the menu visible */
    transform: scaleY(1); /* Expand vertically */
    opacity: 1; /* Fully visible */
    visibility: visible;
}


.menu-item {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #00bfff;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: #007acc;
}

.menu-icon {
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: flex; /* Align icon correctly */
    align-items: center;
    justify-content: center;
    margin-top: -8px;
}

/* Adjust for MOBILE */
@media (max-width: 768px) {
    .menu {
        display: none; /* Hidden by default */
        position: fixed; /* Align relative to the screen */
        top: 50px; /* Position below the navbar */
        left: 0; /* Start from the left */
        flex-direction: column; /* Stack items vertically */
        background-color: #2d3e50; /* Menu background color */
        padding: 0; /* Remove menu padding */
        border-radius: 0; /* No rounded corners */
        transform: translateX(-100%); /* Hidden off-screen initially */
        transition: transform 0.3s ease; /* Smooth slide-in animation */
        z-index: 1000; /* Ensure visibility above other elements */
        width: auto; /* Menu width adapts to buttons only */
    }

    .menu.show {
        display: flex; /* Make the menu visible */
        transform: translateX(0); /* Slide in from the left */
    }

    .menu-item {
        color: white;
        text-decoration: none;
        font-size: 0.8rem; /* Smaller font size for compact design */
        padding: 5px 10px; /* Minimal padding for small buttons */
        background-color: #00bfff; /* Button color */
        border-radius: 3px; /* Slightly rounded corners */
        text-align: center; /* Center the text inside the button */
        transition: background-color 0.3s ease;
        margin: 0; /* Remove space between buttons */
        width: auto; /* Ensure buttons do not stretch unnecessarily */
    }

    .menu-item:hover {
        background-color: #007acc; /* Button hover effect */
    }

    .menu-icon {
        font-size: 24px; /* Standard menu icon size */
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        background-color: transparent;
        border: none;
        outline: none;
    }

    /* Remove any space around sections caused by the menu */
    body.menu-open {
        overflow: hidden; /* Prevent scrolling when the menu is open */
    }

    /* Ensure no gaps or spacing below buttons */
    .menu-item + .menu-item {
        margin-top: 0; /* Remove vertical spacing between buttons */
    }
}

.about-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.about-link:hover {
    color: #00bfff;
}

.nav-links {
    display: flex;
    align-items: center; /* Orta bölümdeki öğeleri dikeyde ortalar */
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00bfff;
}

/* Oturum Aç Butonu */
.login-btn {
    background-color: #00bfff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center; /* Vertically center text */
    justify-content: center; /* Center horizontally */
    height: 40px;
    line-height: normal;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Removes the underline */
}

.login-btn:hover {
    background-color: #007acc;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Updated Styling for Logout Button */

/* Updated Logout Button Styling */
.logout-btn {
    background-color: #00bfff; /* Match Oturum Aç button */
    color: white;
    padding: 9px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    align-items: center; /* Vertically center text */
    justify-content: center; /* Center horizontally */
    display: inline-block; /* Inline with greeting text */
    height: 35px; /* Consistent height with navbar items */
    line-height: normal;
    font-size: 14px;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Ensure consistency */
    vertical-align: middle; /* Align with greeting text */
    font-family: Arial, sans-serif;
}

.logout-btn:hover {
    background-color: #007acc; /* Hover effect */
}
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Ana İçerik Ayarları */
main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
}

/* Hero Section Ayarları */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Tüm ekran yüksekliğini kaplar */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    transition: background-image 3s ease-in-out; /* Smooth geçiş efekti */
    margin-top: -10px; /* Navigation bar ile boşluk kalmaması için */
    margin: 0; /* Section'lar arasında boşluk bırakmaz */
    padding: 0; /* İçerik boşluklarını sıfırlar */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Siyah transparan katman */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hafif gölge efekti */
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #00bfff;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #007acc;
}

/* Gym Section Arka Plan */
.gym-bg {
    background-image: url('https://pythondjango-vercel.s3.eu-north-1.amazonaws.com/trainer_app/gym_background.jpg');
}

/* Nutrition Section Arka Plan */
.nutrition-bg {
    background-image: url('https://pythondjango-vercel.s3.eu-north-1.amazonaws.com/trainer_app/nutrition_background.jpg');
}



/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WHY WOGENEER SECTION START @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

.why-wogeneer-bg {
    background-image: url('https://pythondjango-vercel.s3.eu-north-1.amazonaws.com/trainer_app/wogeneer_bkg.jpeg'); /* Neden Wogeneer arka plan resmi */
}

#neden-wogeneer-section {
    position: relative;
    min-height: 100vh; /* Ekranın tamamını kaplar */
    background-image: url('https://pythondjango-vercel.s3.eu-north-1.amazonaws.com/trainer_app/wogeneer_bkg.jpeg');
    background-size: 100%; /* Görüntüyü biraz küçültür (zoom out) */
    background-position: center;
    background-repeat: no-repeat;

    /* Siyah transparan katman eklemek için */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white; /* Yazıların beyaz olması için */
}

#neden-wogeneer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Siyah transparan katman */
    z-index: 1;
}

#neden-wogeneer-section h2,
#neden-wogeneer-section p {
    position: relative;
    z-index: 2; /* Yazıların transparan katmanın üstünde görünmesi için */
}

#neden-wogeneer-section h2 {
    font-size: 3rem; /* Başlığın boyutunu büyüt */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hafif gölge efekti */
    margin-bottom: 30px;
    color: white; /* Beyaz renk */
}

#neden-wogeneer-section p {
    font-size: 1.2rem; /* Paragrafın boyutunu büyüt */
    color: white; /* Beyaz renk */
    line-height: 2.6; /* Satır aralığını genişlet */
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WHY WOGENEER SECTION END @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ SIKÇA SORULAN SORULAR SECTION START @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

.sss-bg {
    background-image: url('https://pythondjango-vercel.s3.eu-north-1.amazonaws.com/trainer_app/sss_background.jpg'); /* sss arka plan resmi */
}

.sss-container {
    color: black; /* Black text */
}

.sss-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.sss-question {
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    color: rgb(255, 255, 255); /* Ensure questions are black */
    font-size: 1.5rem;
}

.sss-question:hover {
    color:  #00bfff; /* Highlight question on hover */
}

.sss-answer {
    color: rgb(255, 255, 255); /* Ensure answers are black */
    margin-top: 10px;
    max-height: 0; /* Collapse by default */
    font-size: 1.3rem;
    overflow: hidden; /* Hide overflowing content */
    transition: max-height 0.3s ease-out; /* Smooth opening/closing effect */
}

#sss-section {
    background-color: rgb(255, 255, 255); /* Pure white */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

#sss-section h2 {
    font-size: 2.5rem; /* Başlığın boyutunu büyüt */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hafif gölge efekti */
    margin-bottom: 30px;
    color: white; /* Beyaz renk */
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ SIKÇA SORULAN SORULAR SECTION END @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ USER COMMENT SECTION START @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

.user-comment-bg {
    background-image: url('https://pythondjango-vercel.s3.eu-north-1.amazonaws.com/trainer_app/comment_bkg.jpg'); /* comments arka plan resmi */
}

.comment-form {
    margin-top: 20px;
    background: rgba(38, 38, 39, 0.8); /* Slightly transparent background */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #918f8f;
    border-radius: 5px;
    resize: none;
}

.comment-form .rating {
    margin-bottom: 10px;
}

.comment-form button {
    background-color: #00bfff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background-color: #008fcc;
}

#commentsContainer {
    margin-top: 20px;
}

.comment-item {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(38, 38, 39, 0.8); /* Slightly transparent background */
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-item p {
    margin: 0;
}

.comment-item .rating-stars {
    color: #ffcc00; /* Star color */
    margin-top: 5px;
    font-size: 1.2em;
}

#user-comment-section h2 {
    font-size: 3rem; /* Başlığın boyutunu büyüt */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hafif gölge efekti */
    margin-bottom: 30px;
    color: white; /* Beyaz renk */
}

#user-comment-section p {
    font-size: 0.8rem; /* Başlığın boyutunu büyüt */
    margin-bottom: 30px;
    color: rgb(223, 220, 220); /*  renk */
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ USER COMMENT SECTION END @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

/* MOBILE OPTIMIZATION */
body {
    font-size: 80%; /* Base font-size for scaling */
    line-height: 1.5; /* Improve readability */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

main {
    margin: 0;
    padding: 0;
}

img, video {
    max-width: 100%; /* Prevent images from overflowing */
    height: auto; /* Ensure responsive scaling */
}

button, input, textarea {
    font-size: 1rem; /* Ensure interactive elements scale properly */
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        height: 50px;
        background-color: #121e2b; /* Solid navbar color */
        z-index: 1100; /* Ensure it stays on top */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for clarity */
    }
    
    .left-section {
        display: flex;
        align-items: center;
        gap: 10px; /* Menü ikonu ile dil seçici arasındaki boşluk */
    }
    
    .language-selector {
        margin-left: 0 !important; /* Varsayılan margin'i sıfırla */
    }
    
    .language-selector select {
        font-size: 11px !important; /* Mobilde daha küçük font */
        padding: 3px 6px !important; /* Daha kompakt padding */
    }

    /* First Section Offset for Navbar */
    .hero-section, .gym-section, .nutrition-section, section:first-of-type {
        margin-top: 50px; /* Push the first section below the navbar */
    }

    /* Ensure Full-Screen Background for First Section */
    .navbar.scrolled {
        background-color: #121e2b; /* Solid color when scrolled */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow on scroll */
    }
    
    .nav-links {
        display: none; /* Hide by default on smaller screens */
        flex-direction: column;
        gap: 15px;
        position: fixed;
        top: 60px; /* Below navbar */
        left: 0;
        width: 100%;
        background: #2d3e50;
        padding: 20px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-links.show {
        display: flex; /* Show when toggled */
    }
}

/* Hero Section for Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 50px); /* Subtract navbar height */
        background-size: cover; /* Ensure full background coverage */
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Prevent tiling */
        margin: 0; /* Remove gaps around the section */
        padding: 0;
    }


    .hero-content h1 {
        font-size: 2rem; /* Smaller headlines */
    }

    .hero-btn {
        padding: 10px 20px; /* Adjust button padding */
        font-size: 1rem;
    }
}

/* General Section Adjustments */
@media (max-width: 768px) {
    section {
        padding: 10px 15px;
    }

    #neden-wogeneer-section h2, #neden-wogeneer-section p {
        font-size: 1.5rem;
    }

    .sss-question {
        font-size: 1.2rem;
    }

    .sss-answer {
        font-size: 1rem;
    }
}

/* Button Responsiveness */
@media (max-width: 768px) {
    .login-btn, .hero-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Prevent Horizontal Scrolling */
html, body {
    overflow-x: hidden;
}

/* Footer Optimization */
@media (max-width: 768px) {
    footer {
        padding: 10px;
        text-align: center;
    }
}

/* Neden Wogeneer Section - Mobile Fix */
@media (max-width: 768px) {
    #neden-wogeneer-section {
        background-size: cover;
        background-position: center;
        min-height: 100vh; /* Full-screen height */
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        overflow: hidden; /* Prevent overflow issues */
    }
    #neden-wogeneer-section h2 {
        font-size: 2rem; /* Adjust title size */
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add shadow */
    }

    #neden-wogeneer-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0 15px;
    }

    #neden-wogeneer-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6); /* Add dark overlay */
        z-index: 1;
    }

    #neden-wogeneer-section h2, #neden-wogeneer-section p {
        position: relative; /* Ensure text is above overlay */
        z-index: 2;
    }
}

/* Improve "user comment" Section Readability */
@media (max-width: 768px) {
    #user-comment-section h2 {
        font-size: 1.5rem; /* Başlığın boyutunu büyüt */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hafif gölge efekti */
        margin-bottom: 30px;
        color: white; /* Beyaz renk */
    }
    #user-comment-section p {
        font-size: 0.8rem; /* Başlığın boyutunu büyüt */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hafif gölge efekti */
        margin-bottom: 30px;
        color: white; /* Beyaz renk */
    }
}


/* Mobile Optimization for First Two Sections */
@media (max-width: 768px) {
    /* Gym Section */
    .gym-section, .gym-bg {
        background-size: cover; /* Ensure the image covers the section */
        background-position: center; /* Center the background image */
        background-repeat: no-repeat; /* Prevent repetition */
        height: 70vh; /* Use 70% of viewport height for better visibility */
        display: flex; /* Center content */
        align-items: center; /* Vertically center content */
        justify-content: center; /* Horizontally center content */
        text-align: center; /* Center text alignment */
        margin: 0; /* Remove top and bottom margins */
        padding: 0; /* Remove extra padding */
    }

    /* Nutrition Section */
    .nutrition-section, .nutrition-bg {
        background-size: cover; /* Ensure the image covers the section */
        background-position: center; /* Center the background image */
        background-repeat: no-repeat; /* Prevent repetition */
        height: 70vh; /* Use 70% of viewport height for better visibility */
        display: flex; /* Center content */
        align-items: center; /* Vertically center content */
        justify-content: center; /* Horizontally center content */
        text-align: center; /* Center text alignment */
        margin: 0; /* Remove top and bottom margins */
        padding: 0; /* Remove extra padding */
        margin-bottom: 0;
    }

    /* Text Styling for Sections */
    .gym-section h1, .nutrition-section h1 {
        font-size: 1.8rem; /* Adjust heading size */
        color: white; /* Ensure text is readable */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add text shadow for contrast */
        margin-bottom: 15px;
    }

    .gym-section .btn, .nutrition-section .btn {
        font-size: 1rem; /* Adjust button size */
        padding: 10px 20px; /* Adjust padding for buttons */
        border-radius: 5px; /* Smooth button edges */
        background-color: #00bfff; /* Button color */
        color: white;
        text-decoration: none;
    }

    .gym-section .btn:hover, .nutrition-section .btn:hover {
        background-color: #007acc; /* Button hover effect */
    }

    #sss-section {
        margin: 0; /* Eliminate margins */
        padding: 20px; /* Consistent padding */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 0; /* Remove rounded corners */
    }

    #sss-section h2 {
        font-size: 2rem; /* Başlığın boyutunu büyüt */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hafif gölge efekti */
        margin-bottom: 30px;
        color: white; /* Beyaz renk */
    }

    #neden-wogeneer-section {
        margin: 0; /* Remove any gaps between the two sections */
    }
    /* Fix for Background Image Zoom Issues */
    .gym-section, .nutrition-section, #neden-wogeneer-section, #sss-section {
        background-attachment: scroll; /* Disable fixed background */
        background-size: cover; /* Ensure the image covers the section */
        background-position: center; /* Center the background image */
    }

    /* Additional Content Spacing Adjustments */
    .gym-section, .nutrition-section, #neden-wogeneer-section, #sss-section {
        padding-top: 20px; /* Add uniform padding inside sections */
        padding-bottom: 20px;
    }
    /* Ensure No Margins from Previous and Next Sections */
    #neden-wogeneer-section,
    .nutrition-section + #neden-wogeneer-section {
        margin: 0; /* Remove any gaps between sections */
    }

    /* Prevent White Spaces at the Top and Bottom of the Section */
    .nutrition-section, #neden-wogeneer-section {
        margin: 0;
        padding: 0;
    }
    section {
        margin: 0; /* Remove all margins for sections */
        padding: 0; /* Remove all paddings for sections */
        display: block; /* Ensure sections are block-level elements */
    }
    footer {
        padding: 10px;
        text-align: center;
    }
}

