/**
 * ═══════════════════════════════════════════════════════════════════════════
 * WIDGET MAGAZINE MODERN STYLES
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * Typography: Outfit (titles) + Inter (body)
 * Style: Modern, clean, high-impact
 * 
 * Used by:
 * - text_over_image.php (widget layout)
 * - hero_swiper.php (widget content)
 * 
 * @version 1.0.0
 * @date 2025-12-17
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');


/* ═══════════════════════════════════════════════════════════════════════════
   HERO SWIPER - MAGAZINE MODERN
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero Swiper Magazine Variables */
.js-swiper-hero {
    --hero-font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hero-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hero-shadow-text: 0 2px 8px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
    --hero-shadow-text-subtle: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Slide Background with Gradient Overlay */
.js-swiper-hero .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
}

.js-swiper-hero .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Hero Content Container */
.js-swiper-hero .hero-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Category Badge - Magazine Style */
.js-swiper-hero .hero-badge {
    font-family: var(--hero-font-body);
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Title - Outfit, Modern Style */
.js-swiper-hero .hero-title {
    font-family: var(--hero-font-title);
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: var(--hero-shadow-text);
    max-width: 900px;
}

/* Subtitle - Inter, Clean & Modern */
.js-swiper-hero .hero-subtitle {
    font-family: var(--hero-font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    text-shadow: var(--hero-shadow-text-subtle);
    max-width: 700px;
}

/* CTA Button - Magazine Modern */
.js-swiper-hero .hero-btn {
    font-family: var(--hero-font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-swiper-hero .hero-btn:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: #1a1a2e;
}

.js-swiper-hero .hero-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.js-swiper-hero .hero-btn:hover::after {
    transform: translateX(4px);
}

/* Swiper Navigation - Premium Style */
.js-swiper-hero .swiper-button-prev,
.js-swiper-hero .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.js-swiper-hero .swiper-button-prev:hover,
.js-swiper-hero .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.js-swiper-hero .swiper-button-prev::after,
.js-swiper-hero .swiper-button-next::after {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

/* Pagination Bullets - Premium */
.js-swiper-hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s ease;
}

.js-swiper-hero .swiper-pagination-bullet-active {
    background: #fff;
    width: 36px;
    border-radius: 6px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TEXT OVER IMAGE - MAGAZINE MODERN
   ═══════════════════════════════════════════════════════════════════════════ */

/* Text Over Image Variables (set per-widget via inline style) */
.widget-text-over-image {
    --toi-font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --toi-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --toi-shadow-text: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    --toi-shadow-text-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Card Container */
.widget-text-over-image .toi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--toi-height-mobile, 20rem);
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #1a1a2e;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-text-over-image .toi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Background Image */
.widget-text-over-image .toi-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.widget-text-over-image .toi-card:hover .toi-card-bg {
    transform: scale(1.08);
}

/* Overlay with Gradient Enhancement */
.widget-text-over-image .toi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        var(--toi-overlay, rgba(0,0,0,0.5)) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    );
    z-index: 1;
}

/* Content Container */
.widget-text-over-image .toi-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: var(--toi-height-mobile, 20rem);
    padding: 2rem;
    flex-grow: 1;
}

/* Remove underline from all text inside link */
.widget-text-over-image .toi-card,
.widget-text-over-image .toi-card *,
.widget-text-over-image .toi-card:hover,
.widget-text-over-image .toi-card:hover * {
    text-decoration: none !important;
}

/* Title - Outfit, Modern Style */
.widget-text-over-image .toi-title {
    font-family: var(--toi-font-title);
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-shadow: var(--toi-shadow-text);
}

/* Subtitle - Inter, Clean & Modern */
.widget-text-over-image .toi-subtitle {
    font-family: var(--toi-font-body);
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
    text-shadow: var(--toi-shadow-text-subtle);
    text-transform: uppercase;
    opacity: 0.9;
}

/* Body Text */
.widget-text-over-image .toi-text {
    font-family: var(--toi-font-body);
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: var(--toi-shadow-text-subtle);
}

/* CTA Button - Refined */
.widget-text-over-image .toi-btn {
    font-family: var(--toi-font-body);
    margin-top: 1.25rem;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.widget-text-over-image .toi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero Swiper Responsive */
@media (max-width: 768px) {
    .js-swiper-hero .swiper-slide {
        min-height: 60vh;
    }
    
    .js-swiper-hero .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .js-swiper-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .js-swiper-hero .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .js-swiper-hero .swiper-slide {
        min-height: 50vh;
    }
    
    .js-swiper-hero .hero-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }
}

/* Text Over Image Responsive */
@media (min-width: 992px) {
    .widget-text-over-image .toi-card { 
        min-height: var(--toi-height-desktop, 25rem); 
    }
    .widget-text-over-image .toi-content { 
        min-height: var(--toi-height-desktop, 25rem); 
        padding: 3.5rem; 
    }
    .widget-text-over-image .toi-title { 
        font-size: clamp(2rem, 3.5vw, 3rem); 
    }
}

@media (max-width: 576px) {
    .widget-text-over-image .toi-content { 
        padding: 1.5rem; 
    }
    .widget-text-over-image .toi-title { 
        font-size: 1.5rem; 
    }
    .widget-text-over-image .toi-subtitle { 
        font-size: 0.9rem; 
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   WIDGET ANIMATIONS (shared keyframes)
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes toi-fade { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

@keyframes toi-slide-up { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes toi-slide-down { 
    from { opacity: 0; transform: translateY(-30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes toi-zoom { 
    from { opacity: 0; transform: scale(0.9); } 
    to { opacity: 1; transform: scale(1); } 
}
