/**
 * Givia Circle Rotator Styles (v22.2 - Ultimate Layout)
 */
 .givia-circle-rotator-wrapper {
    --orbit-radius: 250px;
    --card-height: 480px;
    --card-width: 100%;
    --card-radius: 32px;
    --card-border-width: 1px;
    --card-border-color: #ebebeb;
    --card-padding: 40px 50px;
    --title-font-size: 36px;
    --desc-font-size: 16px;
    --title-color: #1e3a8a;
    --desc-color: #64748b;
    --badge-bg: #fff7ed;
    --badge-color: #ea580c;
    --center-bg: linear-gradient(135deg, #1e3a8a, #312e81);
    --center-color: #ffffff;
    
    position: relative;
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.givia-circle-rotator-wrapper .top-container {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: var(--card-height);
}

/* 궤도 UI */
.givia-circle-rotator-wrapper .orbit-wrapper {
    position: relative;
    flex: 0 0 calc(var(--orbit-radius) * 2 + 100px);
    height: calc(var(--orbit-radius) * 2 + 100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.givia-circle-rotator-wrapper .orbit-ring-visual {
    position: absolute;
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    border: 1px dashed #e2e8f0;
    border-radius: 50%;
    pointer-events: none;
}

.givia-circle-rotator-wrapper .orbit-center {
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--center-bg);
    color: var(--center-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
    padding: 15px;
}

.givia-circle-rotator-wrapper .orbit-center span {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.givia-circle-rotator-wrapper .orbit-center small {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.9;
}

.givia-circle-rotator-wrapper .orbit-track {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.givia-circle-rotator-wrapper .satellite {
    position: absolute;
    width: 64px;
    height: 64px;
    background: #fff;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    z-index: 5;
    border: 1px solid #f1f5f9;
}

.givia-circle-rotator-wrapper .satellite.active {
    background: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
    transform: translate(-50%, -50%) scale(1.15);
    border-color: transparent;
}

/* 콘텐츠 디스플레이 */
.givia-circle-rotator-wrapper .content-display {
    position: relative;
    flex: 1;
    width: var(--card-width);
    height: var(--card-height);
    background: #fff;
    border-radius: var(--card-radius) !important;
    border: var(--card-border-width) solid var(--card-border-color) !important;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.givia-circle-rotator-wrapper .content-bg-wrapper {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    border-radius: var(--card-radius) !important;
    overflow: hidden;
}

.givia-circle-rotator-wrapper .content-bg-wrapper.active {
    opacity: 1;
}

.givia-circle-rotator-wrapper .content-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.givia-circle-rotator-wrapper .content-bg-wrapper.has-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 35%, rgba(255,255,255,0.2) 100%);
    z-index: 2;
}

.givia-circle-rotator-wrapper .content-item {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--card-padding);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.givia-circle-rotator-wrapper .content-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.givia-circle-rotator-wrapper .content-badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: var(--badge-bg);
    color: var(--badge-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.givia-circle-rotator-wrapper .content-title {
    font-size: var(--title-font-size);
    font-weight: 800;
    color: var(--title-color);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.givia-circle-rotator-wrapper .content-desc {
    font-size: var(--desc-font-size);
    color: var(--desc-color);
    line-height: 1.6;
    max-width: 450px;
}

/* 에디터 전용 스타일 */
.givia-circle-rotator-editor-container {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.givia-premium-preview-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.givia-editor-nav-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex !important;
    gap: 4px;
    z-index: 100;
    background: transparent;
    padding: 0;
    border-radius: 4px;
}

.givia-nav-square-btn {
    background: #000 !important;
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
}

/* Editor Helper Nav (Always Visible, Purple) */
.givia-editor-helper-nav {
    position: absolute;
    bottom: -15px;
    right: 20px;
    display: flex !important;
    gap: 4px !important;
    z-index: 110;
    background: transparent !important;
    padding: 0 !important;
}

.givia-helper-btn {
    background: #6d28d9 !important; /* Givia Purple */
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.givia-helper-btn:hover {
    opacity: 1;
    background: #5b21b6 !important;
}

.givia-helper-btn svg {
    stroke: #fff !important;
    width: 16px;
    height: 16px;
}

.givia-nav-square-btn:hover {
    background: #333 !important;
}

.givia-editor-inner-blocks-manager {
    margin-top: 20px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

/* 반응형 모바일 대응 */
@media (max-width: 991px) {
    .givia-circle-rotator-wrapper .top-container {
        flex-direction: column;
        gap: 30px;
    }
    .givia-circle-rotator-wrapper .content-display {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .givia-circle-rotator-wrapper .orbit-wrapper {
        flex: 0 0 calc(var(--orbit-radius) * 2 + 60px);
        height: calc(var(--orbit-radius) * 2 + 60px);
    }
    .givia-circle-rotator-wrapper .orbit-center {
        width: 100px;
        height: 100px;
    }
    .givia-circle-rotator-wrapper .orbit-center span {
        font-size: 14px;
    }
    .givia-circle-rotator-wrapper .satellite {
        width: 48px;
        height: 48px;
        font-size: 11px;
    }
}
