/* Custom styles for Gymapp */

/* Header alignment for top-social items */
.top-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -8px;
    /* Pulled up by ~20px as requested for better alignment */
    position: relative;
    z-index: 100;
}

/* Base style for all links in top-social including Instagram */
.top-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    vertical-align: middle;
}

/* Specific adjustment for Instagram icon to ensure perfect centering with button */
.top-social a i.fa-instagram {
    font-size: 22px;
    line-height: 1;
}

/* Footer Program links hover effect - same as blog links */
.footer-widget .workout-program li a {
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-widget .workout-program li a:hover {
    color: var(--theme-primary);
    padding-left: 8px;
}

.footer-widget .workout-program li a::before {
    content: "\f105";
    font-family: "FontAwesome";
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-widget .workout-program li a:hover::before {
    left: 0;
    opacity: 1;
}

/* Modern appointment button in header - resized and aligned */
.appointment-btn {
    display: inline-flex !important;
    align-items: center;
    font-size: 13px;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    padding: 7px 16px;
    /* Slightly more compact */
    color: #ffffff !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(135deg, var(--theme-primary-light), var(--theme-primary-dark));
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -o-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    line-height: normal;
}

.appointment-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary-light));
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    z-index: -1;
}

.appointment-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.5);
    color: #ffffff !important;
}

.appointment-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Icon for appointment button */
.appointment-btn i {
    margin-right: 6px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.appointment-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Mobile Adjustments */
@media only screen and (max-width: 767px) {

    /* Move entire header up by reducing top padding (default is 40px) */
    .header-section {
        padding-top: 20px !important;
    }

    /* Logo positioning - remove extra margins to keep it high */
    .header-section .logo {
        margin-top: 0;
        margin-bottom: 15px;
        padding-top: 0;
    }

    /* Resize Appointment Button */
    .appointment-btn {
        padding: 5px 12px;
        font-size: 11px;
        margin-left: 10px;
    }

    .appointment-btn i {
        font-size: 11px;
        margin-right: 4px;
    }

    /* Top Social Container adjustment */
    .top-social {
        margin-top: 0;
        padding-bottom: 5px;
        justify-content: flex-end;
    }

    /* Slider Text spacing - increase to compensate for header being higher */
    .hero-text {
        margin-top: 60px;
    }
}

/* Footer Legal Links Styles */
.footer-legal-links {
    font-size: 13px;
    opacity: 0.8;
    display: inline-block;
    margin-left: 5px;
}

.footer-legal-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--theme-primary);
    text-decoration: none;
}

/* Mobile responsive for footer legal links */
@media only screen and (max-width: 767px) {
    .footer-legal-links {
        display: block;
        margin-top: 10px;
        margin-left: 0;
        font-size: 12px;
    }

    .footer-legal-links a {
        display: inline-block;
        margin: 5px 0;
    }
}

/* ========================================
   GLOBAL CONTENT READABILITY FIX
   ======================================== */
/* This ensures all user-generated HTML content is readable on dark backgrounds */

/* Legal pages content */
.legal-content,
.legal-content *,
.legal-content p,
.legal-content div,
.legal-content span,
.legal-content li {
    color: #c4c4c4 !important;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
    color: #ffffff !important;
}

/* Blog content */
.blog-text,
.blog-text *,
.blog-text p,
.blog-text div,
.blog-text span,
.blog-text li {
    color: #c4c4c4 !important;
}

.blog-text h1,
.blog-text h2,
.blog-text h3,
.blog-text h4,
.blog-text h5,
.blog-text h6 {
    color: #ffffff !important;
}

/* Service detail content */
.service-detail-content,
.service-detail-content *,
.service-detail-content p,
.service-detail-content div,
.service-detail-content span,
.service-detail-content li {
    color: #c4c4c4 !important;
}

.service-detail-content h1,
.service-detail-content h2,
.service-detail-content h3,
.service-detail-content h4,
.service-detail-content h5,
.service-detail-content h6 {
    color: #ffffff !important;
}

/* Service cards (other services section) */
.about-us p,
.about-us p *,
.about-us div,
.about-us div *,
.about-us span,
.about-us span * {
    color: #c4c4c4 !important;
}

/* Announcement content */
.announcement-content,
.announcement-content *,
.announcement-content p,
.announcement-content div,
.announcement-content span,
.announcement-content li {
    color: #c4c4c4 !important;
}

.announcement-content h1,
.announcement-content h2,
.announcement-content h3,
.announcement-content h4,
.announcement-content h5,
.announcement-content h6 {
    color: #ffffff !important;
}

/* Strong and bold text should be white for emphasis */
.legal-content strong,
.legal-content b,
.blog-text strong,
.blog-text b,
.service-detail-content strong,
.service-detail-content b,
.announcement-content strong,
.announcement-content b {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Links should use theme color */
.legal-content a,
.blog-text a,
.service-detail-content a,
.announcement-content a {
    color: var(--theme-primary) !important;
}

.legal-content a:hover,
.blog-text a:hover,
.service-detail-content a:hover,
.announcement-content a:hover {
    color: var(--theme-primary-light) !important;
}

/* Service cards description */
.service-description,
.service-description *,
.service-description p,
.service-description div,
.service-description span {
    color: #c4c4c4 !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: #fff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, .1);
    border-radius: 15px;
    z-index: 9990;
    padding: 20px 30px;
    border-left: 5px solid #1e3e55;
    animation: 1.5s ease-out cookieSlideInUp;
}

.cookie-buttons button {
    background: #1e3e55 !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 20px 10px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}

.cookie-buttons button:hover {
    background: #162f41 !important;
}


.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-icon {
    font-size: 30px;
    color: #1e3e55;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.cookie-text b {
    color: #1e3e55;
    display: block;
    margin-bottom: 2px;
}

.cookie-text a {
    color: #1e3e55;
    text-decoration: underline;
    font-weight: 600;
}

@keyframes cookieSlideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width:768px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        display: none;
    }
}