/**
 * Appletree Circles Plugin Styles
 * 워드프레스 충돌 방지를 위한 스코프 스타일
 */

/* Wrapper */
.at-wrapper {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    background-color: #000;
    background-size: 900px !important;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    font-family: 'Noto Sans KR', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.at-wrapper *,
.at-wrapper *::before,
.at-wrapper *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.at-wrapper svg.at-hidden {
    display: none;
}

/* Container */
.at-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* 헤더 */
.at-wrapper .at-title {
    color: #fff;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 2px;
}

.at-appletree {
    color: #ff1744;
    font-weight: 500;
}

/* 원 섹션 */
.at-circles-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.at-circles-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

/* 빨간 연기 효과 */
.at-red-glow {
    position: absolute;
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(255, 0, 50, 0.3) 0%, rgba(255, 0, 50, 0.1) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

/* Circle Wrapper 위치 */
.at-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.at-circle-wrapper:nth-child(1) { margin-top: 40px; }
.at-circle-wrapper:nth-child(2) { margin-top: 100px; }
.at-circle-wrapper:nth-child(3) { margin-top: 0; }
.at-circle-wrapper:nth-child(4) { margin-top: 100px; }
.at-circle-wrapper:nth-child(5) { margin-top: 40px; }

/* PC: 원 한 줄 배치 */
@media screen and (min-width: 1025px) {
    .at-circle-wrapper:nth-child(1),
    .at-circle-wrapper:nth-child(2),
    .at-circle-wrapper:nth-child(3),
    .at-circle-wrapper:nth-child(4),
    .at-circle-wrapper:nth-child(5) {
        margin-top: 0;
    }
}

/* 리퀴드 글래스 원 */
.at-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.at-circle:hover {
    transform: scale(1.05);
}

.at-circle:active {
    transform: scale(1);
}

/* Layer 1: 유리 왜곡 + 블러 */
.at-circle-layer1 {
    isolation: isolate;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 50%;
    filter: url(#at-glass-distortion);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: backdrop-filter 0.2s ease, opacity 0.2s ease;
}

.at-circle:hover .at-circle-layer1 {
    opacity: 0.9;
}

/* Layer 2: 유리 빛 반사 */
.at-circle-layer2 {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 50%;
    box-shadow: 
        inset 1px 1px 0px 0 rgb(192 228 233 / 70%),
        inset -3px 0px 10px 0 rgb(192 228 233 / 70%),
        inset 3px 2px 3px 0 rgb(192 228 233 / 70%),
        inset -1px -1px 3px 1px rgba(255, 255, 255, 0.5),
        inset -1px -5px 10px -1px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.18s ease;
    pointer-events: none;
}

.at-circle:hover .at-circle-layer2 {
    box-shadow: 
        inset 1px 1px 0 0 rgb(192 228 233 / 85%),
        inset -3px 0 12px 0 rgb(192 228 233 / 85%),
        inset 4px 3px 4px 0 rgb(192 228 233 / 80%),
        inset -1px -2px 4px 1px rgba(255, 255, 255, 0.65),
        inset -2px -7px 12px -1px rgba(255, 255, 255, 0.6);
}

/* Circle Title */
.at-circle__title {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.at-circle__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 300;
    line-height: 1.4;
    display: none;
    position: relative;
    z-index: 2;
}

/* Impression 원 - 빨간색 스타일 */
.at-circle--highlight {
    border: 1px solid #ff1744;
}

.at-circle--highlight .at-circle-layer1 {
    filter: url(#at-glass-distortion-red);
}

.at-circle--highlight .at-circle-layer2 {
    box-shadow: 
        inset 1px 1px 0px 0 rgba(255, 80, 100, 0.7),
        inset -3px 0px 10px 0 rgba(255, 80, 100, 0.7),
        inset 3px 2px 3px 0 rgba(255, 80, 100, 0.7),
        inset -1px -1px 3px 1px rgba(255, 100, 120, 0.5),
        inset -1px -5px 10px -1px rgba(255, 100, 120, 0.5),
        0 0 40px rgba(255, 23, 68, 0.5),
        0 0 80px rgba(255, 23, 68, 0.3);
}

.at-circle--highlight:hover .at-circle-layer2 {
    box-shadow: 
        inset 1px 1px 0 0 rgba(255, 100, 120, 0.85),
        inset -3px 0 12px 0 rgba(255, 100, 120, 0.85),
        inset 4px 3px 4px 0 rgba(255, 100, 120, 0.80),
        inset -1px -2px 4px 1px rgba(255, 120, 140, 0.65),
        inset -2px -7px 12px -1px rgba(255, 120, 140, 0.6),
        0 0 50px rgba(255, 23, 68, 0.6),
        0 0 100px rgba(255, 23, 68, 0.4);
}

.at-circle--highlight .at-circle__title {
    color: #fff;
}

.at-circle--highlight .at-circle__subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.6);
}

/* 구분선 */
.at-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    margin: 28px 0;
}

/* 텍스트 섹션 */
.at-text-section {
    text-align: center;
}

.at-text-section p {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 10px;
}

.at-text-section .at-highlight {
    color: #ff1744;
    font-weight: 500;
}

.at-text-section .at-main-text {
    font-size: 22px;
}

.at-text-section-en {
    text-align: center;
}

.at-text-section-en p {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
}

.at-text-section-en .at-highlight {
    color: #ff1744;
    font-weight: 500;
}

.at-text-section-en .at-main-text {
    font-size: 24px;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
    .at-circles-container {
        gap: 20px;
    }
    
    .at-circle {
        width: 140px;
        height: 140px;
    }
    
    .at-circle__title {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .at-wrapper {
        padding: 20px 10px;
        min-height: auto;
    }
    
    .at-circles-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .at-circle-wrapper {
        margin-top: 0 !important;
    }
    
    .at-circle {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .at-circle__title {
        font-size: 14px;
    }
    
    .at-red-glow {
        width: 200px;
        height: 100px;
    }
}

@media screen and (max-width: 480px) {
    .at-circles-container {
        gap: 10px;
    }
    
    .at-circle {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    
    .at-circle__title {
        font-size: 12px;
    }
}
