/* ==========================================
   WINGS GYM - Custom Styles
   ========================================== */

*, html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* === SECTION STYLING === */
section {
    position: relative;
}

/* Section dividers - wave/diagonal transitions */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(15, 15, 26, 0.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#hero::before,
section:first-of-type::before {
    display: none;
}

/* Subtle glow effects for sections */
#sluzby::after,
#tabata::after,
#reference::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(255, 107, 53, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative corner accents */
.service-card::before,
.pricing-card::before,
.shop-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 53, 0.05) 50%);
    border-radius: 0 1rem 0 0;
    pointer-events: none;
}

/* === HEADER === */
#header {
    background: transparent;
    backdrop-filter: blur(0);
}

#header.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === NAVIGATION === */
.nav-link {
    position: relative;
    color: #A0AEC0;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B35;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === MOBILE MENU === */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(10px);
    transition: max-height 0.4s ease;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: #A0AEC0;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #fff;
    background: rgba(255, 107, 53, 0.1);
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: #FF6B35;
    color: #fff;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

/* === HERO === */
.hero-bg {
    background: linear-gradient(135deg, #1A1A2E 0%, #0F0F1A 100%);
}

#hero {
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(30, 42, 74, 0.5) 0%, transparent 50%),
                linear-gradient(180deg, #0F0F1A 0%, #1A1A2E 100%);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

/* === SERVICE CARDS === */
.service-card {
    background: linear-gradient(180deg, #1a2744 0%, #16213E 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 53, 0.1);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.service-card-highlight {
    border-color: rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #1a2744 0%, rgba(255, 107, 53, 0.15) 100%);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B35;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* === PRICING CARDS === */
.pricing-card {
    background: linear-gradient(180deg, #1a2744 0%, #16213E 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 53, 0.3);
}

.pricing-card-featured {
    border-color: #FF6B35;
    border-width: 2px;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.15) 0%, #16213E 40%);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.15);
}

.pricing-card-featured:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 107, 53, 0.2);
}

.pricing-card-featured > div:first-child {
    z-index: 10;
}

/* === SHOP BLOCKS === */
.shop-block {
    background: linear-gradient(180deg, #1a2744 0%, #16213E 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.shop-block:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: linear-gradient(180deg, #1a2744 0%, #16213E 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    font-family: 'Bebas Neue', sans-serif;
    color: rgba(255, 107, 53, 0.1);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* === FORM === */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-input::placeholder {
    color: #A0AEC0;
}

/* === ANIMATIONS === */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.reveal-up:nth-child(1) { animation-delay: 0.1s; }
.reveal-up:nth-child(2) { animation-delay: 0.2s; }
.reveal-up:nth-child(3) { animation-delay: 0.3s; }
.reveal-up:nth-child(4) { animation-delay: 0.4s; }

/* Pause animations until in view */
.reveal-up {
    animation-play-state: paused;
}

.reveal-up.visible {
    animation-play-state: running;
}

/* === SOCIAL FEED CARDS === */
.social-feed-card {
    background: linear-gradient(180deg, #1a2744 0%, #16213E 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-feed-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fb-feed-wrapper {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fb-feed-wrapper .fb-page {
    width: 100%;
    overflow: hidden;
}

.fb-feed-wrapper .fb-page > span,
.fb-feed-wrapper .fb-page iframe {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

/* === FOOTER === */
footer {
    background: linear-gradient(180deg, transparent 0%, rgba(22, 33, 62, 0.5) 100%);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-2px);
}

/* === FOCUS STATES === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* === SELECTION === */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #fff;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0F0F1A;
}

::-webkit-scrollbar-thumb {
    background: #1E2A4A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF6B35;
}

/* === SECTION HEADINGS CONSISTENT STYLE === */
section h2 {
    position: relative;
    display: inline-block;
}

.text-center h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF6B35, transparent);
    border-radius: 2px;
}

/* === ENHANCED BUTTONS === */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* === CONTACT FORM ENHANCED === */
.form-input {
    background: rgba(30, 42, 74, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* === TABATA GALLERY === */
.tabata-gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tabata-gallery-item:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 53, 0.1);
}

.tabata-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tabata-gallery-item:hover img {
    transform: scale(1.05);
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(180deg, #1a2744 0%, #16213E 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 53, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 53, 0);
    transition: background 0.3s ease;
    pointer-events: none;
    border-radius: 1rem;
}

.gallery-item:hover::after {
    background: rgba(255, 107, 53, 0.08);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    display: none;
}

.lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.25s ease forwards;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    width: 80vw;
    max-height: 80vh;
    z-index: 1;
}

.lightbox-image-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, #1a2744 0%, #16213E 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-placeholder {
    border-radius: 0;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: #FF6B35;
    border-color: #FF6B35;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #FF6B35;
    border-color: #FF6B35;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0.5rem 1.25rem;
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #A0AEC0;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 768px) {
    .font-heading {
        letter-spacing: 0.05em;
    }

    h1.font-heading {
        font-size: 3.5rem !important;
    }

    section::before {
        height: 60px;
    }

    .testimonial-card::before {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 0.5rem;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .lightbox-content {
        width: 92vw;
    }

    .lightbox-image-wrapper {
        min-height: 40vh;
    }

    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* === PRINT STYLES === */
@media print {
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === FACEBOOK PLUGIN === */
.fb-feed-wrapper {
    text-align: center;
}
