/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    overflow: hidden;
    height: 100vh;
}

/* Slider container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Progress bar */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 30;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    width: 0%;
    transition: width 0.1s linear;
}

/* Slider wrapper */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 3;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 80px;
    z-index: 4;
    color: white;
}

.slide-text {
    max-width: 800px;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-details {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Ad slides */
.ad-slide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ad-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.ad-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
}

.ad-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
}

.ad-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ad-text > p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.ad-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.ad-slot {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ad-slot small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ad-timer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Recommendation slide */
.recommendation-slide {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.recommendation-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommendation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.recommendation-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 40px;
}

.recommendation-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3498db;
}

.recommendation-text > p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.topic-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.topic-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3498db;
}

.topic-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.topic-stats {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.topic-stats i {
    margin-right: 5px;
}

/* Navigation controls */
.nav-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 25;
    pointer-events: none;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Play controls */
.play-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 25;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.slide-counter {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 25;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Responsive design */
@media (max-width: 768px) {
    .slide-content {
        padding: 40px 20px 100px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .nav-controls {
        padding: 0 20px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .play-controls {
        top: 20px;
        right: 20px;
        gap: 15px;
    }
    
    .play-btn {
        width: 45px;
        height: 45px;
    }
    
    .slide-counter {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .ad-text {
        padding: 20px;
    }
    
    .ad-text h2 {
        font-size: 2rem;
    }
    
    .ad-slots {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recommendation-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 30px 15px 80px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-details {
        padding: 15px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
    }
    
    .ad-text h2 {
        font-size: 1.5rem;
    }
    
    .recommendation-text h2 {
        font-size: 1.5rem;
    }
}

/* Loading animation */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    z-index: 100;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions */
.slide-enter {
    opacity: 0;
    transform: translateX(100%);
}

.slide-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.slide-exit {
    opacity: 1;
    transform: translateX(0);
}

.slide-exit-active {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}