/* ============================================
   ORACNOOS PREMIUM HERO SLIDER
   World-Class Design - Apple/Tesla Inspired
   ============================================ */

.hero-slider-container {
    position: relative;
    width: 90%;
    max-width: 1800px;
    height: 520px;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-radius: 20px;
}

/* Animated Background Particles */
.hero-bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 77, 255, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

/* Slide Wrapper */
.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s 1.2s,
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

/* First slide shows immediately (before JS loads) */
.hero-slide:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    z-index: 2;
}

.hero-slide:first-child .hero-slide-content {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s,
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    z-index: 2;
}

.hero-slide.prev {
    transform: scale(0.95);
    opacity: 0;
}

/* Slide Image (Parallax Effect) */
.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease-out;
}

.hero-slide.active .hero-slide-image {
    animation: slowZoom 8s ease-out forwards;
}

/* Multi-Layer Overlay (Depth) */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    z-index: 1;
}

/* Glassmorphism Content Box */
.hero-slide-content {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 40px 50px;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 229, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 3;
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-slide.active .hero-slide-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Category Badge (Premium) */
.hero-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(124, 77, 255, 0.2));
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

/* Title (Massive Impact) */
.hero-slide-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 229, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    /* Prevent text overflow */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(2.25rem * 1.3 * 2); /* 2 lines max */
}

/* Excerpt */
.hero-slide-excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    max-width: 800px;
}

/* Meta Info */
.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-meta-item i {
    color: #00e5ff;
}

/* CTA Button (Premium) */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    margin-top: 25px;
    background: linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 229, 255, 0.4),
        0 0 30px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 229, 255, 0.6),
        0 0 50px rgba(0, 229, 255, 0.4);
}

/* ============================================
   NAVIGATION CONTROLS
   ============================================ */

/* Arrow Buttons */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    color: #00e5ff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-nav-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00e5ff;
    box-shadow: 
        0 4px 20px rgba(0, 229, 255, 0.4),
        0 0 40px rgba(0, 229, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev {
    left: 30px;
}

.hero-nav-next {
    right: 30px;
}

/* Dot Indicators */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hero-dot.active {
    width: 40px;
    border-radius: 6px;
    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

/* Progress Bar */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00e5ff 0%, #7c4dff 100%);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 11;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.hero-progress-bar.animating {
    animation: progressGrow 5s linear;
}

/* ============================================
   SLIDE NUMBER INDICATOR (Premium Touch)
   ============================================ */

.hero-slide-number {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 10px 20px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00e5ff;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-slide-number span {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    }
}

@keyframes titleShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes progressGrow {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* ============================================
   HOVER EFFECTS (Premium)
   ============================================ */

.hero-slide {
    cursor: pointer;
}

.hero-slide:hover .hero-slide-image {
    transform: scale(1.05);
}

.hero-slide:hover .hero-slide-content {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 229, 255, 0.25);
}

.hero-slide:hover .hero-slide-title {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 229, 255, 0.5),
        0 0 30px rgba(0, 229, 255, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) {
    .hero-slider-container {
        height: 460px;
    }
    
    .hero-slide-title {
        font-size: 2rem;
        max-height: calc(2rem * 1.3 * 2); /* 2 lines max */
    }
    
    .hero-slide-content {
        padding: 35px 40px;
    }
}

@media (max-width: 1024px) {
    .hero-slider-container {
        height: 380px;
    }
    
    .hero-slide-title {
        font-size: 1.75rem;
        max-height: calc(1.75rem * 1.3 * 2); /* 2 lines max */
    }
    
    .hero-slide-excerpt {
        font-size: 1rem;
    }
    
    .hero-slide-content {
        padding: 30px;
        bottom: 40px;
    }
    
    .hero-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-nav-prev {
        left: 20px;
    }
    
    .hero-nav-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        width: 95%;
        height: 320px;
        border-radius: 12px;
    }
    
    .hero-slide-title {
        font-size: 1.4rem;
        max-height: calc(1.4rem * 1.3 * 2); /* 2 lines max */
    }
    
    .hero-slide-excerpt {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-slide-content {
        padding: 20px;
        bottom: 20px;
        width: 95%;
    }
    
    .hero-slide-meta {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-nav-prev {
        left: 10px;
    }
    
    .hero-nav-next {
        right: 10px;
    }
    
    .hero-slide-number {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .hero-cta-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        width: 100%;
        height: 280px;
        border-radius: 0;
    }
    
    .hero-slide-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
        max-height: calc(1.15rem * 1.3 * 2); /* 2 lines max */
    }
    
    .hero-slide-content {
        padding: 15px;
    }
    
    .hero-category-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

/* ============================================
   LIGHT MODE
   ============================================ */

[data-theme="light"] .hero-slider-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e1e8ed 100%);
}

[data-theme="light"] .hero-slide-overlay {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%),
        linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 60%);
}

[data-theme="light"] .hero-slide-content {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 119, 189, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(0, 119, 189, 0.1);
}

[data-theme="light"] .hero-category-badge {
    background: linear-gradient(135deg, rgba(0, 119, 189, 0.15), rgba(94, 53, 177, 0.15));
    border-color: rgba(0, 119, 189, 0.4);
    color: #0277bd;
}

[data-theme="light"] .hero-slide-title {
    background: linear-gradient(135deg, #01579b 0%, #0277bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .hero-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 119, 189, 0.3);
    color: #0277bd;
}

/* ============================================
   PERFORMANCE & ACCESSIBILITY
   ============================================ */

.hero-slide,
.hero-slide-image,
.hero-slide-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide-image,
    .hero-slide-content,
    .hero-category-badge,
    .hero-slide-title {
        animation: none !important;
        transition-duration: 0.1s !important;
    }
    
    .hero-slide-image {
        transform: none !important;
    }
}

/* Loading State */
.hero-slider-container.loading {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.hero-slider-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 229, 255, 0.3);
    border-top-color: #00e5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

