/**
 * Givia Circle Rotator Styles (v19.0 - Premium Orbit UI)
 */

.givia-circle-rotator-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    z-index: 1;
    --primary: #1e3a8a;
    --accent: #d97706;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --orbit-radius: 250px;
}

/* 궤도 UI (Left) + 콘텐츠 패널 (Right) */
.givia-circle-rotator-wrapper .top-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    min-height: 550px;
    position: relative;
}

/* -- 궤도(Orbit) 시스템 디자인 -- */
.givia-circle-rotator-wrapper .orbit-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 중앙 코어 (Royal Blue & Gold) */
.givia-circle-rotator-wrapper .orbit-center {
    position: absolute;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary), #312e81);
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 30px rgba(30, 58, 138, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.1);
    z-index: 10;
    animation: giviaOrbitPulseGlow 3s infinite alternate;
}

@keyframes giviaOrbitPulseGlow {
    0% { box-shadow: 0 0 20px rgba(30, 58, 138, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 0 40px rgba(30, 58, 138, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3); }
}

.givia-circle-rotator-wrapper .orbit-center span {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    line-height: 1.2;
}

.givia-circle-rotator-wrapper .orbit-center small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* 회전하는 궤도선 (JS에서 회전 제어) */
.givia-circle-rotator-wrapper .orbit-track {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 시각적인 점선 궤도 원 */
.givia-circle-rotator-wrapper .orbit-ring-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    border: 1px dashed rgba(30, 58, 138, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

/* 위성 노드 */
.givia-circle-rotator-wrapper .satellite {
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 5;
    text-align: center;
    padding: 10px;
    word-break: keep-all;
}

.givia-circle-rotator-wrapper .satellite:hover {
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
    transform: scale(1.1);
}

.givia-circle-rotator-wrapper .satellite.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    width: 100px;
    height: 100px;
    font-size: 1.2rem;
    z-index: 6;
}

/* -- 콘텐츠 패널 -- */
.givia-circle-rotator-wrapper .content-display {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    padding: 3rem;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
}

.givia-circle-rotator-wrapper .content-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.givia-circle-rotator-wrapper .content-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease, transform 3s ease;
    z-index: 0;
}

.givia-circle-rotator-wrapper .content-bg-img.active {
    opacity: 1;
    transform: scale(1.05);
}

.givia-circle-rotator-wrapper .content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.givia-circle-rotator-wrapper .content-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.givia-circle-rotator-wrapper .content-badge {
    align-self: flex-start;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.givia-circle-rotator-wrapper .content-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.2;
}

.givia-circle-rotator-wrapper .content-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    word-break: keep-all;
    max-width: 85%;
}

/* 반응형 모바일 */
@media (max-width: 991px) {
    .givia-circle-rotator-wrapper .top-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }
    .givia-circle-rotator-wrapper .orbit-wrapper {
        height: 380px;
    }
    .givia-circle-rotator-wrapper .orbit-center {
        width: 110px;
        height: 110px;
    }
    .givia-circle-rotator-wrapper .orbit-center span {
        font-size: 0.9rem;
    }
    .givia-circle-rotator-wrapper .satellite {
        width: 75px;
        height: 75px;
        font-size: 0.9rem;
    }
    .givia-circle-rotator-wrapper .satellite.active {
        width: 85px;
        height: 85px;
        font-size: 1rem;
    }
    .givia-circle-rotator-wrapper .content-display {
        min-height: 350px;
        padding: 2rem;
    }
    .givia-circle-rotator-wrapper .content-item {
        padding: 2rem;
    }
    .givia-circle-rotator-wrapper .content-title {
        font-size: 1.8rem;
    }
}
