/**
 * Affiliate Shaped Text - Frontend Styles
 * Modern şekilli metin kutuları stilleri
 */

/* ========================================
   CSS Variables (Defaults)
   ======================================== */
:root {
    --ast-bg-color: #1a1a2e;
    --ast-item-bg: #ff7200;
    --ast-text-color: #ffffff;
    --ast-spacing: 30px;
}

/* ========================================
   Section Container
   ======================================== */
.ast-section {
    position: relative;
    width: 100%;
    overflow: visible !important;
    box-sizing: border-box;
    background: transparent;
}

.ast-section *,
.ast-section *::before,
.ast-section *::after {
    box-sizing: border-box;
}

/* Elementor container overflow fix - arka planın sola uzanması için */
.elementor-widget-affiliate-shaped-text,
.elementor-widget-affiliate-shaped-text .elementor-widget-container,
.elementor-element .elementor-widget-wrap,
.elementor-column,
.elementor-container,
.elementor-section {
    overflow: visible !important;
}

/* ========================================
   Container & Layout
   ======================================== */
.ast-container {
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 1;
}

.ast-column {
    width: 100%;
    overflow: visible;
}

.ast-widget-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 40px;
}

/* ========================================
   Heading Styles
   ======================================== */
.ast-heading {
    margin-top: 0;
    width: 100%;
    white-space: normal;
    display: block;
    line-height: 1.2;
    overflow: visible;
}

.ast-heading-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.ast-heading-title .ast-highlight {
    display: inline;
    font-weight: 700;
}

/* ========================================
   Items Wrapper
   ======================================== */
.ast-items-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ========================================
   Spacer
   ======================================== */
.ast-spacer {
    margin: 0;
    padding: 0;
}

.ast-spacer-inner {
    height: 30px;
}

/* ========================================
   Text Items - Shaped Style
   ======================================== */
.ast-text-item {
    margin: 0;
    padding: 0;
    width: fit-content;
    min-width: 200px;
    position: relative;
    z-index: 10;
    display: block;
}

/* Eşit genişlik modu */
.ast-equal-width .ast-text-item {
    width: auto;
    display: block;
}

.ast-equal-width .ast-text-container {
    width: var(--ast-max-width, auto);
    display: inline-block;
}

.ast-text-container {
    position: relative;
    padding: 15px 40px 15px 20px;
    background: transparent;
}

/* Şekilli arka plan - sola doğru uzanan */
.ast-text-container::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -200vw;
    right: 0;
    background-color: var(--ast-item-bg);
    border-radius: 0 50px 50px 0;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Hover efekti */
.ast-text-item:hover .ast-text-container::before {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(255, 114, 0, 0.3);
}

/* Hover efekti kapalı */
.ast-no-hover .ast-text-item:hover .ast-text-container::before {
    transform: none;
    box-shadow: none;
}

/* Metin stilleri */
.ast-text-container p {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* ========================================
   Animations - Slide Left
   ======================================== */
.ast-animate .ast-text-item {
    opacity: 0;
}

.ast-animate-slide-left .ast-text-item {
    transform: translateX(-30px);
}

.ast-animate-slide-left .ast-text-item.ast-animated {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========================================
   Animations - Fade In
   ======================================== */
.ast-animate-fade-in .ast-text-item.ast-animated {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* ========================================
   Animations - Scale Up
   ======================================== */
.ast-animate-scale-up .ast-text-item {
    transform: scale(0.8);
}

.ast-animate-scale-up .ast-text-item.ast-animated {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 1024px) {
    .ast-heading-title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .ast-widget-wrap {
        padding-top: 30px;
    }
    
    .ast-heading-title {
        font-size: 28px;
    }
    
    .ast-text-container {
        padding: 12px 30px 12px 15px;
    }
    
    .ast-text-container p {
        font-size: 16px;
        white-space: normal;
    }
    
    .ast-spacer-inner {
        height: 20px;
    }
}

@media screen and (max-width: 480px) {
    .ast-heading-title {
        font-size: 24px;
    }
    
    .ast-text-container {
        padding: 10px 25px 10px 12px;
    }
    
    .ast-text-container p {
        font-size: 14px;
    }
}
