/**
 * Sosyal XL Blog Hero - Stil Dosyası
 * Version: 1.2.0
 * Hello Elementor ve Elementor Uyumlu
 */

/* Hero Bölümü Ana Container */
.sosyalxl-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Full width için */
.sosyalxl-hero {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

/* Overlay Katmanı */
.sosyalxl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Eski ::before yapısı için fallback */
.sosyalxl-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* İçerik Alanı */
.sosyalxl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Başlık */
.sosyalxl-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: sosyalxl-fadeInUp 0.8s ease-out;
    word-wrap: break-word;
    color: #ffffff;
}

/* Alt Başlık */
.sosyalxl-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: sosyalxl-fadeInUp 0.8s ease-out 0.2s both;
    color: #ffffff;
}

/* Meta Bilgileri */
.sosyalxl-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
    animation: sosyalxl-fadeInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.sosyalxl-hero-meta span {
    display: inline-flex;
    align-items: center;
}

.sosyalxl-hero-date::before {
    content: '📅';
    margin-right: 6px;
}

.sosyalxl-hero-author::before {
    content: '✍️';
    margin-right: 6px;
}

/* Animasyonlar */
@keyframes sosyalxl-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hello Elementor Tema Uyumluluğu */
.elementor-page .sosyalxl-hero,
.elementor-default .sosyalxl-hero,
body.hello-elementor .sosyalxl-hero {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
}

/* Elementor Container içinde */
.elementor-section-wrap .sosyalxl-hero,
.elementor-container .sosyalxl-hero,
.e-container .sosyalxl-hero {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Site header'dan sonra tam genişlik */
.site-header + .sosyalxl-hero,
header + .sosyalxl-hero,
#masthead + .sosyalxl-hero {
    margin-top: 0;
}

/* Elementor Header sonrası */
.elementor-location-header + .sosyalxl-hero,
[data-elementor-type="header"] + .sosyalxl-hero {
    margin-top: 0;
}

/* Responsive Tasarım */
@media screen and (max-width: 1024px) {
    .sosyalxl-hero {
        min-height: 350px;
    }
    
    .sosyalxl-hero-title {
        font-size: 2.5rem;
    }
    
    .sosyalxl-hero-subtitle {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .sosyalxl-hero {
        min-height: 300px;
        background-attachment: scroll;
    }
    
    .sosyalxl-hero-title {
        font-size: 2rem;
    }
    
    .sosyalxl-hero-subtitle {
        font-size: 1rem;
    }
    
    .sosyalxl-hero-content {
        padding: 40px 15px;
    }
    
    .sosyalxl-hero-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .sosyalxl-hero {
        min-height: 250px;
    }
    
    .sosyalxl-hero-title {
        font-size: 1.5rem;
    }
    
    .sosyalxl-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .sosyalxl-hero-content {
        padding: 30px 10px;
    }
}

/* Hover Efektleri */
.sosyalxl-hero:hover .sosyalxl-hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease;
}

/* Breadcrumb Desteği */
.sosyalxl-hero-breadcrumb {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.sosyalxl-hero-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sosyalxl-hero-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.sosyalxl-hero-breadcrumb span {
    margin: 0 8px;
}

/* Elementor Widget Stilleri */
.elementor-widget-sosyalxl_hero .sosyalxl-hero {
    margin: 0;
    width: 100%;
}

/* Print stilleri */
@media print {
    .sosyalxl-hero {
        min-height: auto;
        background-image: none !important;
        padding: 20px;
    }
    
    .sosyalxl-hero-overlay {
        display: none;
    }
    
    .sosyalxl-hero-title,
    .sosyalxl-hero-subtitle {
        color: #000 !important;
        text-shadow: none;
    }
}
