/**
 * Content Blocks Styles
 * 25hours Hotel Theme
 */

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video,
.hero-image,
.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.hero-video {
    z-index: 1;
}

.hero-video-fallback {
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: var(--heading-weight);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-button {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.hero-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    cursor: pointer;
}

.scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        height: 100vh;
    }
    
    .hero-video {
        display: none;
    }
    
    .hero-video-fallback {
        display: block !important;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    .hero-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .hero-scroll-indicator {
        bottom: 30px;
    }
}

/* ========================================
   Split Screen Section
   ======================================== */

.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.split-image {
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content {
    display: flex;
    align-items: center;
    padding: 80px 60px;
    background: var(--background-color);
}

.split-inner {
    max-width: 500px;
}

.split-inner h2 {
    margin-bottom: 1.5rem;
}

.split-text {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .split-screen {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .split-image {
        min-height: 300px;
    }
    
    .split-content {
        padding: 40px 20px;
    }
    
    .split-reverse {
        direction: ltr;
    }
}

/* ========================================
   Gallery Section
   ======================================== */

.image-gallery {
    padding: var(--section-padding);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border-radius: var(--border-radius-small);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.overlay-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Gallery Column Variations */
.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-title {
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .gallery-title {
        margin-bottom: 2rem;
    }
}

/* ========================================
   Text Block
   ======================================== */

.text-block {
    padding: var(--section-padding);
}

.text-block-inner {
    max-width: 800px;
    margin: 0 auto;
}

.text-block h2 {
    margin-bottom: 1.5rem;
}

.text-block-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ========================================
   Two Column Block
   ======================================== */

.two-column-block {
    padding: var(--section-padding);
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   CTA Block
   ======================================== */

.cta-block {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.cta-block h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-block p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-block .button {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.cta-block .button:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* ========================================
   Image Block
   ======================================== */

.image-block {
    padding: var(--section-padding);
}

.image-block-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.image-block-inner.image-size-medium {
    max-width: 800px;
}

.image-block-inner.image-size-small {
    max-width: 600px;
}

.image-block figure {
    margin: 0;
}

.image-block figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    font-style: italic;
}
