/* ═══════════════════════════════════════════
   Astroloop — Zodiac Carousel (CURVED ARC + SLIDE)
   PNG görseller, eğri yay, kayma geçişi
   ═══════════════════════════════════════════ */

.carousel {
    width: 100%;
    max-width: 800px;
    position: relative;
    user-select: none;
    cursor: grab;
}

.carousel.dragging {
    cursor: grabbing;
}

/* Yörünge Alanı */
.carousel__orbit {
    filter: invert(1);
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Eğimli yörünge çizgisi */
.carousel__curve-line {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.carousel__curve-line path {
    fill: none;
    stroke: rgba(201, 168, 76, 0.06);
    stroke-width: 1;
    stroke-dasharray: 4 8;
}

/* Track */
.carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* ── Tek Burç İtemi ── */
.carousel__item {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Animasyon JS tarafından yönetilir (requestAnimationFrame) */
}

/* İkon Wrapper — Dairesiz, temiz görünüm */
.carousel__icon-wrapper {
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Boyut animasyonu JS tarafından yönetilir */
    position: relative;
    overflow: visible;
}

/* PNG Burç Görseli */
.carousel__image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: grayscale(0.4) brightness(0.7);
    pointer-events: none;
}

/* Unicode Sembol (fallback) */
.carousel__symbol {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.45s ease;
    line-height: 1;
}

/* ═══════════════════════════════════════
   AKTİF BURÇ — Orta, parlayan, glow
   ═══════════════════════════════════════ */
.carousel__item.active .carousel__icon-wrapper {
    width: 120px;
    height: 120px;
    border: none;
    background: radial-gradient(circle,
        rgba(201, 168, 76, 0.10) 0%,
        rgba(201, 168, 76, 0.03) 50%,
        transparent 70%
    );
    box-shadow:
        0 0 30px rgba(201, 168, 76, 0.15),
        0 0 60px rgba(201, 168, 76, 0.08),
        0 0 100px rgba(201, 168, 76, 0.04);
    animation: active-glow 3.5s ease-in-out infinite;
}

.carousel__item.active .carousel__image {
    width: 190%;
    height: 190%;
    filter: grayscale(0) brightness(1.15) drop-shadow(0 0 12px rgba(201, 168, 76, 0.45)) drop-shadow(0 0 30px rgba(201, 168, 76, 0.2));
}

.carousel__item.active .carousel__symbol {
    font-size: 2.8rem;
    color: var(--gold);
    text-shadow:
        0 0 12px var(--gold-glow),
        0 0 30px var(--gold-dim);
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

/* Aktif — dış halo ring (bordersiz, sadece glow) */
.carousel__item.active .carousel__icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    animation: ring-pulse 3s ease-in-out infinite;
}

/* Aktif — noktalı dış yörünge */
.carousel__item.active .carousel__icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    animation: slow-rotate 40s linear infinite;
}

/* ═══════════════════════════════════════
   YAKIN KOMŞULAR (offset ±1)
   ═══════════════════════════════════════ */
.carousel__item.near .carousel__icon-wrapper {
    width: 80px;
    height: 80px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.carousel__item.near .carousel__image {
    filter: grayscale(0.2) brightness(0.8);
}

.carousel__item.near .carousel__symbol {
    font-size: 1.5rem;
    color: rgba(201, 168, 76, 0.6);
    text-shadow: 0 0 6px rgba(201, 168, 76, 0.15);
}

/* ═══════════════════════════════════════
   UZAK İTEMLER (offset ±2)
   ═══════════════════════════════════════ */
.carousel__item.far .carousel__icon-wrapper {
    width: 64px;
    height: 64px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.carousel__item.far .carousel__image {
    filter: grayscale(0.5) brightness(0.55);
}

.carousel__item.far .carousel__symbol {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ═══════════════════════════════════════
   UZAK EKSTRA (offset ±3)
   ═══════════════════════════════════════ */
.carousel__item.extra-far .carousel__icon-wrapper {
    width: 52px;
    height: 52px;
    border: none;
    background: transparent;
}

.carousel__item.extra-far .carousel__image {
    filter: grayscale(0.7) brightness(0.4);
}

.carousel__item.extra-far .carousel__symbol {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0.35;
}

/* GİZLİ */
.carousel__item.hidden-item {
    opacity: 0;
    pointer-events: none;
}

/* ═══ AKTİF BURÇ İSMİ ═══ */
.carousel__name {
    text-align: center;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel__name.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ OK KONTROLLERİ ═══ */
.carousel__nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.10);
    background: rgba(197, 197, 197, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.carousel__nav:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.08);
}

.carousel__nav--prev { left: -40px; }
.carousel__nav--next { right: -40px; }

/* ═══ ANİMASYONLAR ═══ */
@keyframes active-glow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(201, 168, 76, 0.15),
            0 0 60px rgba(201, 168, 76, 0.08),
            0 0 100px rgba(201, 168, 76, 0.04);
    }
    50% {
        box-shadow:
            0 0 40px rgba(201, 168, 76, 0.22),
            0 0 80px rgba(201, 168, 76, 0.12),
            0 0 120px rgba(201, 168, 76, 0.06);
    }
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.06); }
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ═══ RESPONSİVE ═══ */
@media (max-width: 768px) {
    .carousel {
        max-width: 100%;
        padding: 0 8px;
    }

    .carousel__orbit {
        height: 170px;
    }

    .carousel__item.active .carousel__icon-wrapper {
        width: 90px;
        height: 90px;
    }

    .carousel__item.active .carousel__symbol {
        font-size: 2rem;
    }

    .carousel__name {
        font-size: 1rem;
        letter-spacing: 4px;
        margin-top: 6px;
    }

    .carousel__nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .carousel__nav--prev { left: 0; }
    .carousel__nav--next { right: 0; }
}

@media (max-width: 480px) {
    .carousel__orbit {
        height: 140px;
    }

    .carousel__item.active .carousel__icon-wrapper {
        width: 76px;
        height: 76px;
    }

    .carousel__name {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .carousel__nav {
        width: 28px;
        height: 28px;
    }
}

@media (max-height: 700px) {
    .carousel__orbit {
        height: 140px;
    }

    .carousel__item.active .carousel__icon-wrapper {
        width: 80px;
        height: 80px;
    }
}
