/* ========================================
   RE/MAX Convention 2026 - Optimalizované styly
   Všechny styly v jednom souboru pro lepší výkon
   ======================================== */

/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Hero sekce */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #003DA5 0%, #003DA5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-iframe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 177.77vh;
    height: 100vh;
    min-width: 100vw;
    transform: translateX(-50%);
    border: none;
    pointer-events: none;
    mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 100, 200, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.logo-white {
    height: 80px;
    width: auto;
    margin-top: 10px;
}

.logo-balloon {
    height: 100px;
    width: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.event-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-date {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 80px;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.countdown-item:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 15px 0;
}

.event-description strong {
    font-weight: 500;
}

.event-description-lead {
    font-size: 1.65rem;
    display: block;
    margin-bottom: 8px;
}

.event-cta-button {
    margin-top: 25px;
    margin-bottom: 20px;
}

.event-description a {
    color: #fff;
    text-decoration: underline;
}

.event-description a:hover {
    text-decoration: none;
}

.schedule {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.schedule-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    will-change: transform;
}

.schedule-time {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.schedule-activity {
    font-size: 1rem;
}

.schedule-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.18);
}

/* Location sekce */
.location-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 25px;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    will-change: transform;
}

.location-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.14);
}

.location-info {
    flex: 1;
}

.location-map {
    flex: 1;
}

.location-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.location-address {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.location-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.location-links a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.location-links a:hover {
    text-decoration: none;
}

.location-video {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}

.location-video img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.location-video:hover img {
    transform: scale(1.05);
}

/* Program sekce */
.program-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #003DA5;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

.program-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.program-content h5 {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.program-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.program-content strong {
    font-weight: 600;
    color: #003DA5;
}

.program-content img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Speakers sekce */
.speakers-section {
    padding: 30px 20px;
    background: white;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.speaker-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.speaker-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
}

.speaker-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.speaker-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.speaker-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Partners sekce */
.partners-section {
    padding: 30px 20px;
    background: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.partner-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    will-change: transform;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Dočasné skrytí spodní části stránky (od Programu dolů) */
.hide-lower .program-section,
.hide-lower .speakers-section,
.hide-lower .partners-section {
    display: none !important;
}

/* Tlačítka s animacemi */
.cta-button {
    display: inline-block;
    background: #DC1C2E;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 28, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #003DA5;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 61, 165, 0.4);
}

/* Cursor glow effect - tvar létajícího balónu pomocí SVG */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 255px;
    pointer-events: none;
    background: radial-gradient(ellipse at center 35%, 
        rgba(0,61,165,0.65) 0%, 
        rgba(0,61,165,0.58) 15%,
        rgba(0,61,165,0.50) 30%,
        rgba(0,61,165,0.40) 45%,
        rgba(0,61,165,0.30) 60%,
        rgba(0,61,165,0.20) 75%,
        rgba(0,61,165,0.12) 85%,
        rgba(0,61,165,0.06) 93%,
        rgba(0,61,165,0) 100%);
    mask-image: url('images/balon.svg');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url('images/balon.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transform-origin: center center;
    filter: blur(4px);
    z-index: 2;
    opacity: 0;
    transition: opacity 300ms ease-out;
    mix-blend-mode: screen;
}

.mouse-glow.is-visible { 
    opacity: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
        filter: blur(3px);
    }
    50% {
        opacity: 0.85;
        filter: blur(4px);
    }
}

/* Helper for tilt containers */
.tilt-origin { transform-style: preserve-3d; }

/* Shape divider */
.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
}

/* Specificky pro poslední vrstvu bez opacity */
.shape-divider path:last-child {
    fill: #FFFFFF !important;
}

/* Responzivní design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 10px 15px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .schedule {
        grid-template-columns: 1fr;
    }
    
    .location-links {
        flex-direction: column;
        align-items: center;
    }
    
    .location-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .program-content {
        padding: 20px;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-card {
        padding: 20px;
        min-height: 100px;
    }
    
    .partner-logo {
        max-height: 60px;
    }
    
    /* Mapa - responzivní styly */
    .location-map div {
        max-width: 95% !important;
        min-width: 280px !important;
        margin: 15px auto !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .event-info {
        padding: 20px;
    }
    
    .location-section {
        padding: 20px;
    }
    
    .program-content {
        padding: 15px;
    }
    
    .speaker-card {
        padding: 20px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .partner-card {
        padding: 15px;
        min-height: 80px;
    }
    
    .partner-logo {
        max-height: 50px;
    }
    
    /* Mapa - responzivní styly pro velmi malé obrazovky */
    .location-map div {
        max-width: 100% !important;
        min-width: 250px !important;
        margin: 10px auto !important;
    }
}

/* Moderní animace a efekty */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Utility třídy */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.p-20 { padding: 20px; }
.p-40 { padding: 40px; }

/* Optimalizace pro výkon */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Print styly */
@media print {
    .hero-section {
        background: #003DA5 !important;
    }
    
    .hero-iframe {
        display: none;
    }
    
    .cta-button {
        background: #DC1C2E !important;
        color: #FFFFFF !important;
    }
}
