/**
 * Premium Hero Frontend Styles - Option 3: 3D Isometric Conveyor
 * 
 * @package RytChef_Fusion
 * @version 5.4.0
 */

/* ===== HERO SLIDER - SPLIT LAYOUT ===== */

/* Hero Section Container */
.premium-hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1400px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Slider Container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Split Layout Content */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 50px;
    align-items: center;
}

/* Text Content (Left Side) */
.text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slide-title {
    font-size: 3.5rem;
    color: white;
    margin: 0;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* Image Content (Right Side) */
.image-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide Dots */
.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    width: 28px;
    border-radius: 4px;
    background: #667eea;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

/* ===== 3D ISOMETRIC CONVEYOR BELT TICKER ===== */

.conveyor-ticker {
    position: relative;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    height: 140px;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #667eea) 1;
    perspective: 1000px;
}

/* 3D Conveyor Container */
.conveyor-3d {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 80px;
    transform-style: preserve-3d;
}

/* Belt Top Surface - Isometric View */
.belt-top {
    position: absolute;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    transform: rotateX(60deg) translateZ(0px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Animated Belt Pattern */
.belt-pattern {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 30px,
            rgba(102, 126, 234, 0.2) 30px,
            rgba(102, 126, 234, 0.2) 32px);
    animation: belt-scroll 2s linear infinite;
}

@keyframes belt-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-32px);
    }
}

/* Belt Side - Left */
.belt-side-left {
    position: absolute;
    left: 0;
    width: 40px;
    height: 60px;
    background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 100%);
    transform: rotateY(-60deg) translateX(-20px);
    transform-origin: right center;
}

/* Belt Side - Right */
.belt-side-right {
    position: absolute;
    right: 0;
    width: 40px;
    height: 60px;
    background: linear-gradient(90deg, #3a3a3a 0%, #2a2a2a 100%);
    transform: rotateY(60deg) translateX(20px);
    transform-origin: left center;
}

/* 3D Rollers */
.roller-3d {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow:
        0 0 20px rgba(102, 126, 234, 0.6),
        inset -3px -3px 6px rgba(0, 0, 0, 0.3);
    animation: roller-spin 2s linear infinite;
}

.roller-3d.left {
    left: 5%;
}

.roller-3d.right {
    right: 5%;
}

@keyframes roller-spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Items on Belt - 3D Perspective */
.belt-items {
    position: absolute;
    left: 100%;
    top: -20px;
    display: flex;
    align-items: center;
    gap: 60px;
    animation: items-move 30s linear infinite;
    transform-style: preserve-3d;
}

@keyframes items-move {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 60px));
    }
}

/* 3D Announcement Pills */
.announcement-3d {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: rotateX(15deg) translateZ(20px);
    white-space: nowrap;
    position: relative;
}

.announcement-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
}

.announcement-icon {
    font-size: 1.2rem;
}

.announcement-text {
    position: relative;
    z-index: 1;
}

/* Support Structure */
.belt-support {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 40px;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.belt-support.left {
    left: 5%;
}

.belt-support.right {
    right: 5%;
}

/* Ambient Lighting */
.conveyor-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg,
            rgba(102, 126, 234, 0.15) 0%,
            transparent 100%);
    pointer-events: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .slide-content {
        gap: 40px;
        padding: 50px 40px;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Clear navbar overlap */
    .premium-hero-section {
        margin-top: 80px;
        margin-bottom: 30px;
        border-radius: 16px;
    }

    /* Flexible slider height */
    .hero-slider {
        height: auto;
        min-height: 550px;
        max-height: 650px;
    }

    /* Optimized layout stacking */
    .slide-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 30px 20px;
    }

    /* Scaled typography */
    .slide-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .slide-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* Image optimization */
    .image-content {
        order: -1;
        max-height: 250px;
        border-radius: 12px;
    }

    /* Text container */
    .text-content {
        order: 1;
    }

    /* CTA Button */
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Smaller navigation arrows */
    .slider-arrow {
        width: 36px;
        height: 36px;
        opacity: 0.9;
    }

    .slider-arrow-prev {
        left: 10px;
    }

    .slider-arrow-next {
        right: 10px;
    }

    /* Optimized ticker */
    .conveyor-ticker {
        height: 100px;
        margin-top: 20px;
    }

    .conveyor-3d {
        width: 95%;
        height: 60px;
        bottom: 15px;
    }

    .announcement-3d {
        font-size: 0.8rem;
        padding: 8px 16px;
        transform: rotateX(10deg) translateZ(15px);
    }

    .roller-3d {
        width: 20px;
        height: 20px;
    }

    /* Slide dots */
    .slide-dots {
        bottom: 20px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .conveyor-ticker {
        height: 100px;
    }

    .announcement-3d {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}