/**
 * eLfilms.cz - Styly pro úvodní stránku
 *
 * @package    eLfilms
 * @subpackage Frontend
 * @file       css/index.css
 * @version    4.0 - Perfect Edition
 * @datum      Leden 2026
 * @author     eLfilms Team
 * @copyright  2009-2026 eLfilms.cz
 *
 * Styly pro homepage eLfilms.cz.
 *
 * STYLUJE:
 * - Hero sekce s pozadím a promo videem
 * - Animované statistiky (počítadla)
 * - Taby s novinkami (filmy/seriály/knihy)
 * - Karty filmů/seriálů/knih
 * - Carousel slavných žen
 * - Carousel výroků
 * - Carousel narozenin
 *
 * POUŽÍVÁ:
 * - index.php (parent stránka)
 *
 * DESIGN:
 * - Barvy: tmavě modrá (#0d1b2a, #0b334f–#1a4f72), zlatá (#EEB500)
 * - Max šířka obsahu: 1200px
 *
 * NOTE:
 * - Responzivní breakpointy jsou v index-responsive.css
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b334f;
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   ANIMOVANÉ PODTRŽENÍ (prohnutá čára)
   ============================================ */
.underline-animated {
    position: relative;
    color: #EEB500;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q 30 2, 60 8 T 120 8' stroke='%23ff4444' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100%;
    transform: scaleX(0);
    transform-origin: left;
    animation: drawUnderline 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawUnderline {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.section-title .underline-animated::after {
    animation-delay: 0.3s;
}

/* ============================================
   HERO SEKCE
   ============================================ */
.hero-section {
    position: relative;
    min-height: 700px;
    padding-top: 80px;
    overflow: visible;
}

/* Pozadí - obrázek s překryvem */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 51, 79, 0.65);
}

/* Spodní tmavá část pod pozadím */
.hero-bottom-bg {
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0a2d45;
    z-index: 0;
}

/* Hero obsah - 2 sloupce */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* LEVÁ ČÁST - logo + statistiky */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 20px;
}

.hero-logo-container {
    margin-bottom: 20px;
    margin-top: 30px;
}

.hero-logo {
    max-width: 320px;
    height: auto;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 60px;
}

/* Animované statistiky */
.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4));
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 45px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}

/* PRAVÁ ČÁST - texty + video */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 10px;
    justify-content: space-between;
    min-height: 480px;
}

.hero-texts {
    text-align: right;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 50px;
    margin-top: 35px;
}

.hero-highlight {
    color: #EEB500;
    margin-top: 12px;
    font-size: 14px;
}

/* Video Panel */
.hero-video-panel {
    background: rgba(11, 51, 79, 0.95);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    width: 500px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-top: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

/* HTML5 video přehrávač */
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 8px;
    object-fit: contain;
    will-change: transform;
    transform: translateZ(0);
}

/* Thumbnail obrázek */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 10;
}

.play-button i {
    font-size: 32px;
    color: white;
    margin-left: 4px;
}

.video-container:hover .play-button {
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.video-caption i {
    margin-right: 8px;
}

/* ============================================
   SEKCE NOVINKY (taby filmy/seriály/knihy)
   ============================================ */
.novinky-section {
    background-color: #0a2d45;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 46px;
    font-weight: bold;
    margin-bottom: 45px;
}

.novinky-tabs {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 55px;
}

.tab-btn {
    padding: 20px 90px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2980b9;
    color: white;
    min-width: 360px;
}

.tab-btn:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.35);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   KARTY FILMŮ / SERIÁLŮ / KNIH
   ============================================ */
.items-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.item-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.item-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Odznak "NEJNOVĚJŠÍ" */
.newest-badge {
    position: absolute;
    top: 30px;
    left: -48px;
    background: #e74c3c;
    color: white;
    padding: 7px 80px;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(-42deg);
    z-index: 10;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.item-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 12px;
}

.item-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.item-poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a5276, #2471a3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-poster-placeholder i {
    font-size: 50px;
    color: rgba(255,255,255,0.25);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
}

.item-card:hover .item-overlay {
    opacity: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.item-year {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
}

/* ============================================
   PROMO SEKCE - FILMY A SERIÁLY
   ============================================ */
.prohlizet-section {
    position: relative;
    background-image: url('../images/2womans-watching-a-movie.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 600px;
}

.prohlizet-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 45, 69, 0.65);
    z-index: 1;
}

.prohlizet-section .container {
    position: relative;
    z-index: 2;
}

.prohlizet-content {
    max-width: 650px;
    text-align: left;
}

.prohlizet-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.prohlizet-description {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ============================================
   SEKCE SLAVNÉ ŽENY (karusel)
   ============================================ */
.slavne-zeny-section {
    background-color: #0b334f;
    padding: 80px 0;
}

.section-title-white {
    text-align: center;
    font-size: 46px;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 55px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #EEB500;
    color: #EEB500;
}

.carousel-wrapper {
    overflow: hidden;
    flex: 1;
    max-width: calc(100% - 120px);
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s ease;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
}

/* Karta slavné ženy */
.zena-card {
    background: transparent;
    border-radius: 20px;
    padding: 35px 25px 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.zena-card:hover {
    background: rgba(255,255,255,0.12);
}

.zena-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

.zena-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a5276, #2471a3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: rgba(255,255,255,0.3);
}

.zena-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.zena-profession {
    font-size: 15px;
    color: #EEB500;
    margin-bottom: 12px;
}

.zena-country {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zena-country .flag {
    font-size: 20px;
}

.carousel-note {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 45px;
    font-style: italic;
}

/* CTA pod karuselem */
.section-cta {
    text-align: center;
    margin-top: 45px;
}

.section-cta h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.cta-number {
    font-size: 45px;
    font-weight: bold;
    color: #EEB500;
    line-height: 1;
}

.cta-label {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}

.btn-cta {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.4);
}

/* ============================================
   SEKCE KNIHY
   ============================================ */
.knihy-section {
    background: linear-gradient(180deg, #1a5f8a 0%, #2980b9 100%);
    padding: 80px 0;
}

.knihy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.knihy-text h2 {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.knihy-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}

.knihy-description {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    line-height: 1.5;
}

.knihy-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.knihy-image img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SEKCE VÝROKY (karusel)
   ============================================ */
.vyroky-section {
    background-color: #0a2d45;
    padding: 80px 0;
}

.vyroky-section .section-title-white {
    margin-bottom: 50px;
}

.vyroky-carousel .carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    display: flex;
}

/* Karta výroku */
.vyrok-card {
    background: transparent;
    border-radius: 20px;
    padding: 30px 20px 25px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    min-height: 350px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vyrok-card:hover {
    background: rgba(255,255,255,0.12);
}

.vyrok-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.vyrok-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vyrok-author-name {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.vyrok-profession {
    font-size: 14px;
    color: #EEB500;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.vyrok-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 15px;
}

/* ============================================
   SEKCE NAROZENINY (karusel aktuální měsíc)
   ============================================ */
.narozeniny-section {
    background-color: #0b334f;
    padding: 100px 0 120px;
}

.narozeniny-header {
    position: relative;
    text-align: center;
    margin-bottom: 100px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

/* Odznak s názvem měsíce */
.narozeniny-month-badge {
    position: absolute;
    top: 80px;
    right: 30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.narozeniny-section .section-title-white {
    margin-bottom: 0;
}

/* Carousel narozenin - 4 karty */
.narozeniny-carousel .carousel-wrapper {
    overflow: visible !important;
    padding-top: 60px;
    padding-bottom: 20px;
}

.narozeniny-carousel .carousel-track {
    gap: 15px;
    overflow: visible !important;
}

.narozeniny-carousel .carousel-item {
    flex: 0 0 calc(25% - 12px);
    min-width: calc(25% - 12px);
}

/* Karta narozenin */
.narozeniny-card {
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 150px 15px 20px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
}

.narozeniny-card:hover {
    background: rgba(255,255,255,0.12);
}

/* Fotka uvnitř karty */
.narozeniny-card img {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #0b334f;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.narozeniny-card img:hover {
    transform: translateX(-50%) scale(1.15);
}

/* Placeholder místo fotky */
.narozeniny-photo-placeholder {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #0b334f;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.narozeniny-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
    line-height: 1.2;
}

/* Dortík + věk */
.narozeniny-cake {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.narozeniny-cake i {
    font-size: 28px;
    color: #EEB500;
}

.narozeniny-age-counter {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.narozeniny-age-label {
    font-size: 18px;
    color: white;
    font-weight: normal;
    margin-left: 3px;
}

/* Datum narození */
.narozeniny-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 12px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.narozeniny-date i {
    color: #EEB500;
    font-size: 12px;
}

/* CTA tlačítko Kalendář narozenin */
.narozeniny-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-kalendar {
    display: inline-block;
    padding: 14px 50px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    text-decoration: none;
}

.btn-kalendar:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.4);
}

/* ============================================
   ACCESSIBILITY & SEO
   ============================================ */

/* Skip to content link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #EEB500;
    color: #0b334f;
    text-decoration: none;
    font-weight: bold;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

/* Vizuálně skrytý H1 - zachováno pro SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}