/**************************************************************
1. Global Body & Typography
**************************************************************/
/* Option A: Light background & dark text */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

/* 
Option B: White background & white text (likely to be invisible).
Uncomment only if you truly want white-on-white.
Otherwise, keep Option A.
*/
/*
body {
    background-color: white;
    color: white;
}
*/

/**************************************************************
2. Header / Navbar
**************************************************************/
header {
    background: linear-gradient(to right, rgb(36, 38, 40), rgb(57, 59, 60));
    color: white;
}

.navbar-brand {
    font-size: 2rem;
    font-family: 'Bebas Neue';
}

/**************************************************************
3. Footer
**************************************************************/
footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/**************************************************************
4. Navbar Hover Underline Effect
**************************************************************/
.nav-link-underline {
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-family: 'Roboto Condensed';
    font-weight: bold;
    font-size: 1.2rem;
}
.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}
.nav-link-underline:hover::after {
    width: 100%;
}
.nav-link-underline:hover {
    color: #f8f9fa;
}

/**************************************************************
5. Social Media Icons Hover
**************************************************************/
.navbar .fa-brands {
    transition: color 0.3s ease;
}
.navbar .fa-brands:hover {
    color: rgb(101, 101, 101);
}
.footer-link:hover {
    color: rgb(101, 101, 101);
}

/**************************************************************
6. Modal Customization
**************************************************************/
.modal-content {
    background: #f8f9fa;
    border-radius: 10px;
}
.modal-header {
    background: linear-gradient(to right, rgb(36, 38, 40), rgb(57, 59, 60));
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/**************************************************************
7. Nav Tabs
**************************************************************/
.nav-tabs .nav-link {
    color: rgb(64, 66, 68);
}
.nav-tabs .nav-link.active {
    background-color: rgb(0, 0, 0);
    color: white;
}

/**************************************************************
8. Additional Font Classes
**************************************************************/
.inter-t {
    font-family: 'Inter';
    font-weight: bold;
    margin-top: 10px;
}
.inter {
    font-family: 'Inter';
    font-weight: bold;
}

/**************************************************************
9. Scroll-to-Top Button
**************************************************************/
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: black;
    color: white;
    border: 2px solid gray;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
    display: none; /* Initially hidden */
}
#scrollToTopBtn i {
    font-size: 24px;
}
#scrollToTopBtn:hover {
    background-color: white;
    color: black;
}

/**************************************************************
10. Card Hover Effect
**************************************************************/
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/**************************************************************
11. Form Focus Styles
**************************************************************/
input:focus,
textarea:focus {
    outline: 2px solid gray !important;  /* Replaces blue border with gray */
    box-shadow: 0 0 5px gray !important; /* Optional gray shadow */
    border-color: gray !important;
}

/**************************************************************
12. Toast Container on Top of Modal
**************************************************************/
#toast-container {
    z-index: 1100 !important;
}

/**************************************************************
13. Responsive Hiding of Social Icons
**************************************************************/
@media screen and (max-width: 320px) {
    #social_icons {
        display: none !important;
    }
    #toast-container {
        width: 320px !important;
    }
}
@media screen and (min-width: 321px) and (max-width: 376px),
       (min-width: 376px) and (max-width: 426px),
       (min-width: 426px) and (max-width: 769px) {
    #social_icons {
        display: none !important;
    }
}
@media screen and (max-width: 320px) and (orientation: landscape) {
    #social_icons {
        display: none !important;
    }
}

/**************************************************************
14. Classes Section Overrides
**************************************************************/
.container-fluid.bg-black {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/**************************************************************
15. Hero Section (Homepage)
**************************************************************/
html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.hero {
    position: relative;
    background: url("/static/gym_app/images/fitness.webp") no-repeat center center / cover;
    color: white;
    height: 600px;
    padding: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
/* Ensures hero text remains above the overlay */
.hero h1,
.hero p,
.hero a {
    position: relative;
    z-index: 2;
}

/* Error list styling (Register Form) */
#error_register {
    list-style: none;
}

/* Responsive adjustments for hero text */
@media screen and (max-width: 480px) {
    #give_title {
        text-align: center !important;
        margin-right: 25px;
        margin-top: 10px;
    }
    #give_desc {
        text-align: center !important;
        margin-right: 25px;
    }
}

/**************************************************************
16. Trainer Profile Page Overrides
**************************************************************/
/* Overriding card background for trainer profile pages? 
   If you truly want the .card to be black in trainer pages 
   but different in others, create a specialized class. */

form input,
form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;  
    background-color: white;
    color: black;
}
form input:focus,
form textarea:focus {
    border-color: rgb(57, 58, 58);
    box-shadow: 0 0 5px rgba(43, 43, 43, 0.5);
    background-color: white;
}

/* Dark card background specifically for trainer profiles */
.trainer-profile-card {
    border-radius: 10px;
    background-color: #111;
    border: 1px solid #333;
}


.form-label {
    color: black; 
    font-weight: bold;
}

/**************************************************************
17. Trainer Cards (Trainers Page)
**************************************************************/
.trainer-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.trainer-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0; 
}
.trainer-image {
    transition: transform 0.3s ease;
}
.trainer-card:hover .trainer-image {
    transform: scale(1.1);
}

/* Overlay */
.trainer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px 15px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.trainer-card:hover .trainer-overlay {
    opacity: 1;
}
.trainer-overlay h5 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* Contact Button Container */
.button-container {
    display: flex;
    justify-content: center;
}

/* Responsive Adjustments for trainer container */
@media screen and (max-width: 480px) {
    #trainer_container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
