/* Coding Agent 전용 퍼플 테마 */

:root {
    /* 코딩 에이전트 컬러 (퍼플) */
    --primary-color: #8b5cf6;      /* Violet */
    --secondary-color: #a78bfa;    /* 밝은 Violet */
    --accent-color: #f97316;       /* 주황색 CTA */
    --purple-dark: #7c3aed;        /* 진한 Violet */
    --purple-light: #c4b5fd;       /* 연한 Violet */

    /* 그라데이션 배경 (퍼플 계열) */
    --bg-gradient: linear-gradient(135deg, #0a0a14 0%, #120d26 25%, #0a0a14 50%, #0d0621 75%, #0a0a14 100%);

    /* 카드 배경 (퍼플 톤) */
    --card-bg: rgba(20, 16, 35, 0.6);
    --card-hover-bg: rgba(139, 92, 246, 0.15);

    /* 테두리 */
    --border-color: rgba(139, 92, 246, 0.2);
}

/* Light 모드 오버라이드 - 테마 컬러 강화 */
[data-theme="light"] {
    --primary-color: #8b5cf6;
    --secondary-color: #a78bfa;
    --accent-color: #7c3aed;
    --bg-gradient: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%);
    --card-bg: rgba(139, 92, 246, 0.04);
    --card-hover-bg: rgba(139, 92, 246, 0.1);
    --border-color: rgba(139, 92, 246, 0.25);
    --light-section-bg: rgba(139, 92, 246, 0.02);
    --light-text-secondary: #5B4A80;
}

/* Coding Agent 페이지 전용 배경 색상 오버라이드 */
body {
    --bg-main: #0a0a0a !important;
    background: #0a0a0a !important;
}

[data-theme="light"] body {
    --bg-main: #faf8ff !important;
    background: #faf8ff !important;
}

/* Hero 섹션 퍼플 테마 (애니메이션 유지) */
.home {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(167, 139, 250, 0.12) 100%);
}

.home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(167, 139, 250, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(196, 181, 253, 0.2) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
}

[data-theme="light"] .home {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(167, 139, 250, 0.06) 100%);
}

[data-theme="light"] .home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(167, 139, 250, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(196, 181, 253, 0.15) 0%, transparent 50%);
}

/* Hero 타이틀 그라데이션 */
.home__title-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

/* Hero 버튼 퍼플 테마 */
.button__primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.button__primary:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

/* style.css의 모든 섹션 배경 효과 제거 (깔끔한 디자인) */
.about::before,
.services::before,
.features::before,
.pricing::before,
.contact::before {
    display: none !important;
}

/* About 섹션 - 투명 배경 */
.about {
    background: transparent;
}

[data-theme="light"] .about {
    background: var(--light-section-bg);
}

/* Features 섹션 - 투명 배경 */
.features {
    background: transparent;
}

[data-theme="light"] .features {
    background: var(--light-section-bg);
}

/* Pricing 섹션 - 투명 배경 */
.pricing {
    background: transparent;
}

[data-theme="light"] .pricing {
    background: var(--light-section-bg);
}

/* Contact 섹션 - 투명 배경 */
.contact {
    background: transparent;
}

[data-theme="light"] .contact {
    background: var(--light-section-bg);
}

/* Hero 섹션 파란색 테마 */
.home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(96, 165, 250, 0.2) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
}

[data-theme="light"] .home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
}

/* 소개 섹션 카드 스타일 (체계적 적용) */
.intro-cards-wrapper {
    padding: 2rem;
}

.intro-cards-description {
    margin-bottom: 2rem;
    text-align: center;
}

.intro-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intro-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.intro-card-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.intro-card-text {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* 라이트 모드 - 카드에 테마 컬러 틴트 적용 */
[data-theme="light"] .intro-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(167, 139, 250, 0.03) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .intro-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.06) 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

[data-theme="light"] .intro-card-title {
    color: #7c3aed;
}

[data-theme="light"] .intro-card-text {
    color: var(--light-text-secondary);
}

/* 라이트 모드: About 섹션 SVG 텍스트 색상 */
[data-theme="light"] .about__data .svg-graph text {
    fill: #1f2937 !important;
}

[data-theme="light"] .about__data .svg-header,
[data-theme="light"] .about__data .svg-file-item,
[data-theme="light"] .about__data .svg-file-label,
[data-theme="light"] .about__data .svg-success-msg,
[data-theme="light"] .about__data .svg-error-msg {
    fill: #374151 !important;
}

/* ===================== */
/*   CODING-AGENT 레이아웃  */
/* ===================== */

/* 기본 스타일 - 접어도 펼쳐도 글씨 크기 동일 (고정값) */
.home__title {
    font-size: 2.2rem;
    line-height: 1.3;
}

.home__description {
    font-size: 1rem;
}

.section__title {
    font-size: 1.5rem;
}

.section__description {
    font-size: 1rem;
}

.feature__card {
    padding: 1.25rem;
    min-width: 0;
    width: 100%;
}

.feature__title {
    font-size: 1.1rem;
}

.feature__description {
    font-size: 0.95rem;
}

.intro-card {
    padding: 1rem;
}

.intro-card-title {
    font-size: 1.1rem;
}

.intro-card-text {
    font-size: 0.9rem;
}

.code-tree, .dependency-graph {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.875rem;
}

.graph-node {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}


/* 스크롤 프로그레스 바 퍼플 테마 */
#scroll-progress {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%) !important;
}

/* 섹션 타이틀 라인 퍼플 테마 */
.section__title-line {
    background: linear-gradient(90deg, transparent, #a78bfa, transparent);
}

/* 링크 호버 퍼플 테마 */
a:not(.button):hover {
    color: #a78bfa;
}

/* Feature 아이콘 퍼플 테마 */
.feature__icon {
    color: #a78bfa;
}

.feature__icon svg {
    stroke: #a78bfa;
}

[data-theme="light"] .feature__icon {
    color: #8b5cf6;
}

[data-theme="light"] .feature__icon svg {
    stroke: #8b5cf6;
}

/* Pricing 체크 아이콘 퍼플 테마 */
.pricing__check {
    stroke: #a78bfa !important;
}

[data-theme="light"] .pricing__check {
    stroke: #8b5cf6 !important;
}

/* Pricing 비활성 아이콘 (X 표시) */
.pricing__feature.disabled .pricing__check {
    stroke: #ef4444 !important;
}
