:root {
    --smiley-red: #ff0000;
    --smiley-green: #33cc33;
    --smiley-yellow: #fbbf24;
    --smiley-dark: #1a202c;
    --smiley-gray: #4a5568;
    --section-height: 850px;
}

.smiley-hero-gallery {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.smiley-hero-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 850px;
    max-height: 850px;
    background: #ffffff;
    border: 24px solid #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.smiley-hero-main {
    position: relative;
    flex: 1 1 auto;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.smiley-hero-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.smiley-hero-main-image.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1;
}

.smiley-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.smiley-hero-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.smiley-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
    text-align: center;
}

.smiley-hero-text.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    position: relative;
}

.smiley-hero-title {
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 10px auto;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 90%;
}

.smiley-hero-subtitle {
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    line-height: 1.4;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    max-width: 85%;
}

.smiley-hero-zoom-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    color: var(--smiley-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.smiley-hero-thumbnails {
    flex: 0 0 auto;
    height: 140px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.smiley-hero-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    background: #f9fafb;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 0;
}

.smiley-hero-thumb:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

.smiley-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.smiley-hero-thumb:hover img {
    transform: scale(1.1);
}

.smiley-hero-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.smiley-hero-thumb:hover .smiley-hero-thumb-overlay {
    opacity: 1;
}

.smiley-hero-thumb.active {
    border: 3px solid var(--smiley-red);
    box-shadow: inset 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.smiley-hero-thumb.active .smiley-hero-thumb-overlay {
    opacity: 0;
}

.smiley-hero-cta-container {
    flex: 0 0 auto;
    height: 70px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 12px 20px;
    visibility: visible !important;
    opacity: 1 !important;
}

.smiley-hero-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    height: auto;
    background: var(--smiley-red);
    color: white !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.smiley-hero-cta:hover {
    background: var(--smiley-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 204, 51, 0.4);
    color: white !important;
}

.smiley-hero-cta svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.smiley-hero-cta:hover svg {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .smiley-hero-gallery {
        padding: 20px;
    }
    
    .smiley-hero-container {
        border-width: 20px;
        border-radius: 20px;
        min-height: 650px;
        max-height: 650px;
    }
    
    .smiley-hero-overlay {
        height: 45%;
    }
    
    .smiley-hero-zoom-hint span {
        display: none;
    }
    
    .smiley-hero-text {
        padding: 20px 24px;
    }
    
    .smiley-hero-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .smiley-hero-subtitle {
        font-size: 17px;
    }
    
    .smiley-hero-thumbnails {
        height: 110px;
    }
    
    .smiley-hero-cta-container {
        height: 65px;
        padding: 10px 20px;
    }
    
    .smiley-hero-cta {
        font-size: 14px;
        padding: 11px 26px;
    }
}

@media (max-width: 480px) {
    .smiley-hero-gallery {
        padding: 12px;
    }
    
    .smiley-hero-container {
        border-width: 16px;
        border-radius: 12px;
        min-height: 600px;
        max-height: 600px;
    }
    
    .smiley-hero-overlay {
        height: 50%;
    }
    
    .smiley-hero-zoom-hint {
        display: none;
    }
    
    .smiley-hero-text {
        padding: 16px 20px;
    }
    
    .smiley-hero-title {
        font-size: 17px;
    }
    
    .smiley-hero-subtitle {
        font-size: 14px;
    }
    
    .smiley-hero-thumbnails {
        height: 95px;
    }
    
    .smiley-hero-cta-container {
        height: 60px;
        padding: 10px 16px;
    }
    
    .smiley-hero-cta {
        font-size: 13px;
        padding: 10px 24px;
    }
}

.smiley-hero-thumb:focus {
    outline: 3px solid var(--smiley-yellow);
    outline-offset: -3px;
}