/*
Theme Name: Universe Fitness
Theme URI: https://universefit.ru
Author: Shoha
Author URI: https://universefit.ru
Description: Fitness theme for universefit
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: universe-fitness
Tags: fitness, gym, sports, custom-templates
*/

body {
    /* background-color: #050505; */
    background-color: rgba(5, 5, 5, 0.5);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

body>section {
    position: relative;
    z-index: 10;
    background-color: #050505;
}

.noselect,
body.noselect {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* old Edge */
    user-select: none;
    /* Chrome/Firefox/modern Edge */
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.05) 0%, rgba(20, 20, 20, 0.4) 100%);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.glass-input {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    outline: none;
}

.text-gold-gradient {
    background: linear-gradient(to right, #D4AF37, #F3E5AB, #AA8C2C, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-800 {
    transition-delay: 0.8s;
}

/* Footer Reveal Effect */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    background-color: #000000;
}

/* Contact section (or the section before footer) */
#contact {
    position: relative;
    z-index: 10;
    background: #050505;
}

/* Create a spacer so content doesn't jump when footer becomes fixed */
.footer-spacer {
    height: 0;
}

#app {
    background-color: #050505;
}

/* ==========================================================
   WordPress Content Typography
   Used by: single.php (.post-content), page.php (.page-content)
   ========================================================== */
.post-content,
.page-content {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.9;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h2,
.page-content h2 {
    font-size: 2rem;
}

.post-content h3,
.page-content h3 {
    font-size: 1.5rem;
}

.post-content h4,
.page-content h4 {
    font-size: 1.25rem;
}

.post-content p,
.page-content p {
    margin-bottom: 1.25rem;
}

.post-content a,
.page-content a {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.post-content a:hover,
.page-content a:hover {
    color: #f5e07a;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content li,
.page-content li {
    margin-bottom: 0.5rem;
}

.post-content ul li::marker,
.page-content ul li::marker {
    color: #D4AF37;
}

.post-content ol li::marker,
.page-content ol li::marker {
    color: #D4AF37;
    font-weight: 700;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 3px solid #D4AF37;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-style: italic;
}

.post-content img,
.page-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.post-content figure,
.page-content figure {
    margin: 2rem 0;
}

.post-content figcaption,
.page-content figcaption {
    color: #6b7280;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}

.post-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    text-align: left;
}

.post-content th,
.page-content th {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    color: #D4AF37;
    font-size: 0.85rem;
}

/* ==========================================================
   Legal Document Base Styles
   Used by: template-club-rules, template-data-processing,
            template-public-oferta (all use .oferta-text)
   ========================================================== */
.oferta-text {
    color: #9ca3af;
    font-size: 0.925rem;
    line-height: 1.85;
}

.oferta-text p {
    margin-bottom: 0.85rem;
}

.oferta-text a {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.oferta-text a:hover {
    color: #f5e07a;
}

.oferta-text .is-chapter {
    color: #D4AF37;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-top: 2.75rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.oferta-text .is-heading {
    color: #D4AF37;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.oferta-text .is-section {
    color: #ffffff;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.oferta-text .is-clause {
    color: #d1d5db;
    padding-left: 1.25rem;
}

.oferta-text .is-stamp {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 0.4rem;
}

.oferta-text .is-highlight {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.oferta-text .is-check {
    padding-left: 1.5rem;
    position: relative;
    color: #d1d5db;
}

.oferta-text .is-check::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: 700;
}

/* ==========================================================
   intl-tel-input — Dark Theme Overrides (v26)
   ========================================================== */

.iti {
    width: 100%;
}

/* Selected flag area */
.iti__selected-country-primary {
    background: transparent !important;
}

.iti__selected-dial-code {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem;
}

/* Dropdown container */
.iti__dropdown-content {
    background-color: rgba(15, 15, 15, 0.97) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
    z-index: 50 !important;
}

.iti--inline-dropdown .iti__dropdown-content {
    z-index: 50 !important;
}

/* Search wrapper border */
.iti__search-input-wrapper {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* Search input */
.iti__search-input {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
}

.iti__search-input:focus {
    border-color: rgba(212, 175, 55, 0.5) !important;
    outline: none !important;
}

.iti__search-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Search icon */
.iti__search-icon-svg {
    stroke: rgba(255, 255, 255, 0.4) !important;
}

/* Country hover & highlight */
.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

/* Country list items */
.iti__country-name {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8rem;
}

.iti__dial-code {
    color: #D4AF37 !important;
    font-size: 0.8rem;
}

/* Arrow color */
.iti__arrow {
    border-top-color: rgba(255, 255, 255, 0.4) !important;
}

.iti__arrow--up {
    border-bottom-color: rgba(255, 255, 255, 0.4) !important;
}

/* Divider between preferred and other countries */
.iti__divider {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Country list scrollbar */
.iti__country-list::-webkit-scrollbar {
    width: 4px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: transparent;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Search clear button */
.iti__search-clear .iti__search-clear-bg {
    fill: rgba(255, 255, 255, 0.4) !important;
}

/* No results text */
.iti__no-results {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================
   Mobile Responsiveness Overrides
   ========================================================== */
@media (max-width: 767px) {
    /* Headings — fluid scaling with clamp() so all phone sizes get proportional text */
    .text-9xl { font-size: clamp(2rem, 9vw, 3rem) !important; line-height: 1.05 !important; }
    .text-8xl { font-size: clamp(1.875rem, 8vw, 2.75rem) !important; line-height: 1.05 !important; }
    .text-7xl { font-size: clamp(1.75rem, 7.5vw, 2.5rem) !important; line-height: 1.1 !important; }
    .text-6xl { font-size: clamp(1.5rem, 7vw, 2.25rem) !important; line-height: 1.1 !important; }
    /* Section titles: scales from ~1.4rem on 320px up to ~2.25rem on 414px+ */
    .text-5xl { font-size: clamp(1.4rem, 7.5vw, 2.25rem) !important; line-height: 1.1 !important; }

    /* Section Padding */
    .py-32 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .py-28 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .py-20 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

    /* Fixed Heights for Images */
    .h-\[600px\], .h-\[500px\] { height: 350px !important; }
    .h-\[400px\] { height: 250px !important; }

    /* Decorative Orbs */
    .w-96, .w-80, .w-72 { width: 15rem !important; }
    .h-96, .h-80, .h-72 { height: 15rem !important; }

    /* Disable aggressive hover transform on cards for mobile */
    .glass-card:hover { transform: translateY(-2px) !important; }

    /* Footer */
    #footer { position: relative !important; z-index: auto !important; }
    .footer-spacer { display: none !important; }
}

/* ==========================================================
   Mobile Menu — ensure details dropdowns are fully scrollable
   ========================================================== */
#mobile-menu {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* When the mobile menu is open, allow body to keep its position */
body.mobile-menu-open {
    overflow: hidden;
}

/* Details element expands naturally, siblings push down */
#mobile-menu details {
    width: 100%;
}

/* Smooth open/close for details dropdown content */
#mobile-menu details > div {
    overflow: hidden;
}

/* Add enough bottom space so last item is never hidden behind anything */
#mobile-menu > *:last-child {
    margin-bottom: 2rem;
}