/* =============== Reference Specifické styly =============== */
.reference-page {
    background-color: var(--bg-dark-1);
}

/* Hero sekce */
.reference-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/reference-hero-bg.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-separator {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 1.5rem auto;
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Sekce světlé a tmavé */
.section-dark {
    background-color: var(--bg-dark-2);
    position: relative;
    padding: 5rem 0;
}

.section-light {
    background-color: var(--bg-dark-1);
    position: relative;
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.section-title.accent {
    color: var(--primary-color);
}

/* Profesionální hráči sekce */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.player-card {
    position: relative;
    border-radius: var(--border-radius-md);
    background: rgba(30, 30, 30, 0.7);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.player-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}

.player-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.player-card:hover .player-image img {
    transform: scale(1.05);
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.player-position {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-testimonial {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}

/* Spolupracujeme sekce - slider */
.partners-section {
    background: linear-gradient(135deg, var(--bg-dark-1) 0%, #111 100%);
    overflow: hidden;
}

.partners-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.slider-arrow {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    color: #000;
}

.partners-track {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 200px;
    overflow: hidden;
}

.partner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    background: rgba(30, 30, 30, 0.7);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.partner-slide.active {
    opacity: 1;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) sepia(100%) saturate(10000%) hue-rotate(30deg);
    transition: all 0.3s ease;
}

.partner-slide:hover .partner-logo img {
    transform: scale(1.1);
}

/* Recenze od členů HeroHero - slider */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.testimonials-track {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 200px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    background: rgba(30, 30, 30, 0.7);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    text-align: right;
    color: var(--primary-color);
}

/* Responzivní design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .players-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .reference-hero {
        height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .partners-slider,
    .testimonials-slider {
        flex-direction: column;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonials-track,
    .partners-track {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .player-image {
        height: 250px;
    }
}

/* Vylepšení pro hero sekci - lepší dojem na mobilních zařízeních */
.reference-hero {
    height: 100vh; /* Změna z 60vh na 100vh pro větší wow efekt */
    background-position: top center; /* Zaměření na horní část pozadí */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    padding: 2rem;
    max-width: 90%; /* Zvětšení šířky pro mobilní zařízení */
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem); /* Responzivní velikost fontu */
    font-weight: 900; /* Extra bold pro větší dojem */
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero-separator {
    width: 150px; /* Širší oddělovač */
    height: 5px; /* Vyšší oddělovač */
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 1.5rem auto 2rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero-description {
    font-size: clamp(1.2rem, 5vw, 1.8rem); /* Responzivní velikost fontu */
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Oprava zobrazení obrázků hráčů */
.player-image {
    position: relative;
    height: auto; /* Změna z fixní výšky */
    padding-bottom: 125%; /* Poměr stran pro zachování kompletního zobrazení včetně hlavy */
    overflow: hidden;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}

.player-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Zaměření na horní část fotky (obličej) */
    transition: transform 0.7s ease;
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* Lepší responzivní design pro karty hráčů */
@media (max-width: 768px) {
    .players-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 3rem;
    }
    
    .player-image {
        padding-bottom: 130%; /* Ještě větší poměr pro mobilní zařízení, aby se zabránilo oříznutí hlavy */
    }
    
    /* Vylepšení hero pro mobilní zařízení */
    .reference-hero {
        height: 90vh;
    }
}

/* Přidání animovaného tlačítka na hero sekci pro větší wow efekt */
.hero-content .hero-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), #ffac00);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.hero-content .hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Dodání 3D hloubky hero sekci */
.hero-3d-element {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
    animation: subtle-rotate 20s infinite alternate;
}

@keyframes subtle-rotate {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(1deg) scale(1.05); }
}

/* Úprava hero sekce - snížení výšky na PC */
.reference-hero {
    height: 80vh; /* Změna ze 100vh na 80vh pro PC */
    background-position: top center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Upravené zobrazení karet hráčů - menší výška na mobilech */
.player-image {
    position: relative;
    height: auto;
    padding-bottom: 110%; /* Snížený poměr stran pro PC */
    overflow: hidden;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}

/* Responzivní úpravy pro karty hráčů na mobilech */
@media (max-width: 768px) {
    .reference-hero {
        height: 70vh; /* Ještě menší výška pro mobilní zařízení */
    }
    
    .players-grid {
        grid-template-columns: 1fr;
        max-width: 320px; /* Zmenšení maximální šířky z 400px */
        margin: 0 auto;
        gap: 2.5rem; /* Menší mezera mezi kartami */
    }
    
    .player-image {
        padding-bottom: 105%; /* Zmenšení poměru stran pro mobily */
    }
    
    .player-info {
        padding: 1rem; /* Menší padding */
    }
    
    .player-name {
        font-size: 1.3rem; /* Menší velikost písma */
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .player-testimonial {
        font-size: 0.9rem; /* Menší velikost písma */
    }
}

/* Extra malé obrazovky */
@media (max-width: 380px) {
    .players-grid {
        max-width: 280px; /* Ještě menší šířka pro velmi malé mobilní zařízení */
    }
    
    .player-image {
        padding-bottom: 100%; /* Ještě menší poměr pro velmi malá zařízení */
    }
}

/* Styl pro sekci partnerů */
.partners-showcase {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.partners-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.partner-showcase-card {
    background: rgba(25, 25, 25, 0.8);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
}

.partner-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.partner-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #ffac00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
}

.partner-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.partner-content {
    padding: 1.5rem;
}

.partner-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.partner-link i {
    transition: transform 0.3s ease;
}

.partner-link:hover {
    color: #ffac00;
}

.partner-link:hover i {
    transform: translateX(5px);
}

/* Animations */
.reveal-on-scroll.partner-showcase-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.partner-showcase-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responzivní design pro partnery */
@media (max-width: 992px) {
    .partners-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-showcase {
        padding: 4rem 0;
    }
    
    .partners-showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .partner-header {
        padding: 1.2rem;
    }
    
    .partner-content {
        padding: 1.2rem;
    }
    
    .partner-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .partner-header h3 {
        font-size: 1.1rem;
    }
}