/**
 * hero-slider.css — Aly Petshop
 * Modern, responsive hero slider with SEO-friendly text overlays
 * Versiyon: v1 — Şubat 2026
 */

/* ============================================================
   HERO SLIDER CONTAINER
   ============================================================ */
.hero-slider-section {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    background: linear-gradient(135deg, #f1f6ff 0%, #ffffff 100%);
    overflow: hidden;
    z-index: 1;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 16 / 9;
}

/* ============================================================
   SLIDER SLIDES
   ============================================================ */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay for better text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* ============================================================
   SLIDE CONTENT (TEXT OVERLAY)
   ============================================================ */
.hero-slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 40px 30px;
    max-width: 700px;
    background: transparent;
    border-radius: 0;
    animation: slideInUp 0.6s ease-out;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-slide-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 400;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 0, 0, 0.4);
}

.hero-slide-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-slide-content .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(75, 142, 241, 0.4);
    color: #fff !important;
}

/* ============================================================
   SLIDER CONTROLS (DOTS & ARROWS)
   ============================================================ */
.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.hero-slider-dot.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   SLIDER ARROWS (PREV/NEXT)
   ============================================================ */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-arrow.prev {
    left: 20px;
}

.hero-slider-arrow.next {
    right: 20px;
}

/* ============================================================
   AUTO-PLAY INDICATOR
   ============================================================ */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #3a7bd5);
    z-index: 4;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* ============================================================
   RESPONSIVE — Tablet (≤991px)
   ============================================================ */
@media (max-width: 991px) {
    .hero-slider-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-slide-content {
        padding: 30px;
        max-width: 500px;
    }

    .hero-slide-content h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-slide-content p {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .hero-slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .hero-slider-arrow.prev {
        left: 12px;
    }

    .hero-slider-arrow.next {
        right: 12px;
    }
}

/* ============================================================
   RESPONSIVE — Mobil (≤767px)
   ============================================================ */
@media (max-width: 767px) {
    .hero-slider-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
        margin-top: var(--header-height);
    }

    .hero-slide-content {
        padding: 20px;
        max-width: 90%;
        background: transparent;
        border-radius: 0;
    }

    .hero-slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }

    .hero-slide-content p {
        font-size: 0.9rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .hero-slide-content .cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .hero-slider-dots {
        bottom: 12px;
        gap: 8px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }

    .hero-slider-dot.active {
        width: 28px;
    }

    .hero-slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .hero-slider-arrow.prev {
        left: 8px;
    }

    .hero-slider-arrow.next {
        right: 8px;
    }
}

/* ============================================================
   RESPONSIVE — Küçük Mobil (≤575px)
   ============================================================ */
@media (max-width: 575px) {
    .hero-slider-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-slide-content {
        padding: 16px;
        max-width: 85%;
    }

    .hero-slide-content h2 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .hero-slide-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .hero-slide-content .cta-button {
        padding: 9px 16px;
        font-size: 12px;
    }

    .hero-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .hero-slider-dot {
        width: 8px;
        height: 8px;
    }

    .hero-slider-dot.active {
        width: 24px;
    }
}

/* ============================================================
   LANDSCAPE MODE
   ============================================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-slider-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-slide-content {
        padding: 18px;
    }

    .hero-slide-content h2 {
        font-size: 1.4rem;
    }

    .hero-slide-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.hero-slider-arrow:focus,
.hero-slider-dot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hero-slide-content .cta-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide-content,
    .hero-slider-progress {
        animation: none !important;
        transition: none !important;
    }
}
