/**
 * Hero Slider Stilleri
 * 
 * @package Haber
 */

/* ===================================
   Hero Slider Section
   =================================== */
.hero-slider-section {
    background: #fff;
    padding: 0;
    margin-bottom: 40px;
}

.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* ===================================
   Hero Slider Container
   =================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

/* ===================================
   Slide Image
   =================================== */
.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

/* ===================================
   Slide Content
   =================================== */
.hero-slide-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 0 80px;
    max-width: 800px;
}

.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

.hero-slide-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.hero-slide-category:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.hero-slide-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-slide-title a {
    color: #fff;
    transition: color 0.3s ease;
}

.hero-slide-title a:hover {
    color: #e74c3c;
}

.hero-slide-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-meta-item i {
    font-size: 1.1rem;
}

.hero-slide-excerpt {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #e74c3c;
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.hero-slide-button:hover {
    background: #c0392b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.6);
}

.hero-slide-button i {
    transition: transform 0.3s ease;
}

.hero-slide-button:hover i {
    transform: translateX(5px);
}

/* ===================================
   Navigation Buttons
   =================================== */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-slider-nav:hover {
    background: rgba(231, 76, 60, 0.9);
    border-color: rgba(231, 76, 60, 1);
    transform: translateY(-50%) scale(1.1);
}

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

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

/* ===================================
   Pagination Dots
   =================================== */
.hero-slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-slider-dot.active {
    background: #e74c3c;
    border-color: #e74c3c;
    width: 40px;
    border-radius: 10px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {
    .hero-slide-content {
        padding: 0 60px;
        max-width: 700px;
    }
    
    .hero-slide-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-slide-content {
        padding: 0 50px;
        max-width: 600px;
    }
    
    .hero-slide-title {
        font-size: 2rem;
    }
    
    .hero-slide-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 550px;
    }
    
    .hero-slide-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .hero-slide-content {
        padding: 0 30px;
        max-width: 100%;
        position: absolute;
        bottom: 40px;
        left: 0;
        right: 0;
    }
    
    .hero-slide-title {
        font-size: 1.75rem;
    }
    
    .hero-slide-excerpt {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-slide-meta {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .hero-slider-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-slider-prev {
        left: 15px;
    }
    
    .hero-slider-next {
        right: 15px;
    }
    
    .hero-slider-pagination {
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-slide-content {
        padding: 0 20px;
        bottom: 30px;
    }
    
    .hero-slide-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .hero-slide-excerpt {
        display: none;
    }
    
    .hero-slide-meta {
        margin-bottom: 15px;
    }
    
    .hero-slide-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
}

/* ===================================
   Animasyonlar
   =================================== */
.hero-slide-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.hero-slide-content .hero-slide-badge {
    animation-delay: 0.2s;
}

.hero-slide-content .hero-slide-category {
    animation-delay: 0.3s;
}

.hero-slide-content .hero-slide-title {
    animation-delay: 0.4s;
}

.hero-slide-content .hero-slide-meta {
    animation-delay: 0.5s;
}

.hero-slide-content .hero-slide-excerpt {
    animation-delay: 0.6s;
}

.hero-slide-content .hero-slide-button {
    animation-delay: 0.7s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.hero-slider.loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

