/**
 * Ana Sayfa Stilleri
 * SGD Dernek Teması
 */

/* Hero Slider */
.hero-slider-section {
    position: relative;
    margin: 0; /* Parent container zaten 12px padding veriyor */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 418px; /* 380px'den 418px'e çıktı - %10 artış, daha orantılı */
    overflow: hidden;
    border-radius: 8px; /* 12px'den 8px'e - tutarlılık için */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

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

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
}

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

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px; /* 35px'den 18px'e düştü - %50 azalma */
    color: #fff;
    z-index: 2;
}

.hero-slide-title {
    font-size: 28px; /* 32px'den 28px'e */
    font-weight: 700;
    margin-bottom: 8px; /* 10px'den 8px'e */
    line-height: 1.3;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-slide-meta {
    display: flex;
    gap: 8px; /* 15px'den 8px'e düştü */
    font-size: 14px; /* 15px'den 14px'e */
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-slide-meta span {
    background: rgba(102, 126, 234, 0.9);
    padding: 4px 10px; /* 5px 14px'den 4px 10px'e */
    border-radius: 4px;
    font-weight: 600;
}

/* Slider Controls */
.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    color: #667eea;
    border: none;
    width: 45px; /* 50px'den 45px'e */
    height: 45px;
    border-radius: 50%;
    font-size: 28px; /* 32px'den 28px'e */
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 15px; /* 20px'den 15px'e */
}

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

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 15px; /* 25px'den 15px'e */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; /* 10px'den 8px'e */
    z-index: 10;
}

.hero-slider-dot {
    width: 12px; /* 14px'den 12px'e */
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: #667eea;
    border-color: #fff;
    width: 35px; /* 40px'den 35px'e */
    border-radius: 7px;
}

/* Latest Posts Section */
.latest-posts-section {
    margin: 15px 0 20px 0; /* Slider ile arasında 15px boşluk */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px; /* 20px'den 12px'e düştü */
    padding-bottom: 8px; /* 12px'den 8px'e */
    border-bottom: 2px solid #667eea;
}

.section-title {
    font-size: 22px; /* Biraz küçültüldü */
    font-weight: 700;
    margin: 0 0 12px 0; /* 20px'den 12px'e */
}

.custom-post-section {
    margin-bottom: 20px; /* 40px'den 20px'e düştü */
}

.post-type-label {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 3px 8px; /* 4px 10px'den 3px 8px'e */
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px; /* 8px'den 6px'e */
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 14px; /* 8px 16px'den küçültüldü */
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 308px; /* 280px'den 308px'e - %10 artış */
    }

    .hero-slide-title {
        font-size: 18px; /* 20px'den 18px'e */
    }

    .hero-slide-content {
        padding: 12px; /* 20px'den 12px'e */
    }

    .hero-slide-meta {
        font-size: 12px; /* 13px'den 12px'e */
        gap: 6px; /* 10px'den 6px'e */
    }

    .hero-slide-meta span {
        padding: 3px 8px; /* 4px 10px'den küçültüldü */
    }

    .hero-slider-prev,
    .hero-slider-next {
        width: 35px; /* 40px'den 35px'e */
        height: 35px;
        font-size: 22px; /* 26px'den 22px'e */
    }

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

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