/* Office Agent 전용 통합 테마 (Excel + PPT + Word) */

:root {
    /* Office 브랜드 컬러 */
    --office-excel: #217346;      /* Excel 녹색 */
    --office-ppt: #D24726;        /* PPT 주황색 */
    --office-word: #2B579A;       /* Word 파란색 */
    --office-common: #7719AA;     /* Office 보라색 (공통) */

    /* 기본 테마 (Office 보라색 계열) */
    --primary-color: #7719AA;
    --secondary-color: #9333ea;
    --accent-color: #f97316;

    /* 그라데이션 배경 (멀티컬러) */
    --bg-gradient: linear-gradient(135deg, #0a0a12 0%, #120a1a 25%, #0a0a12 50%, #0a1218 75%, #0a0a12 100%);

    /* 카드 배경 */
    --card-bg: rgba(20, 15, 30, 0.6);
    --card-hover-bg: rgba(119, 25, 170, 0.15);

    /* 테두리 */
    --border-color: rgba(119, 25, 170, 0.2);
}

/* Light 모드 오버라이드 */
[data-theme="light"] {
    --primary-color: #7719AA;
    --secondary-color: #9333ea;
    --accent-color: #6d28d9;
    --bg-gradient: linear-gradient(135deg, #f8f4fc 0%, #f0e8f5 50%, #f8f4fc 100%);
    --card-bg: rgba(119, 25, 170, 0.04);
    --card-hover-bg: rgba(119, 25, 170, 0.1);
    --border-color: rgba(119, 25, 170, 0.25);
    --light-section-bg: rgba(119, 25, 170, 0.02);
    --light-text-secondary: #4a3860;
}

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

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

[data-theme="light"] .home {
    background: linear-gradient(135deg, rgba(119, 25, 170, 0.08) 0%, rgba(147, 51, 234, 0.06) 100%);
}

/* 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);
}

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

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

/* Hero 섹션 멀티컬러 테마 */
.home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(33, 115, 70, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(210, 71, 38, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(43, 87, 154, 0.2) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
}

[data-theme="light"] .home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(33, 115, 70, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(210, 71, 38, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(43, 87, 154, 0.15) 0%, transparent 50%);
}

.home__title-gradient {
    background: linear-gradient(135deg, #217346 0%, #D24726 50%, #2B579A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

.button__primary {
    background: linear-gradient(135deg, #7719AA 0%, #9333ea 100%);
    box-shadow: 0 10px 30px rgba(119, 25, 170, 0.3);
}

.button__primary:hover {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
    box-shadow: 0 0 30px rgba(119, 25, 170, 0.6);
    transform: translateY(-2px);
}

/* 섹션 타이틀 라인 */
.section__title-line {
    background: linear-gradient(90deg, transparent, #9333ea, transparent);
}

/* 링크 호버 */
a:not(.button):hover {
    color: #9333ea;
}

/* 스크롤 프로그레스 바 */
.scroll-progress,
#scroll-progress {
    background: linear-gradient(90deg, #217346 0%, #D24726 50%, #2B579A 100%) !important;
}

/* Contact 폼 테마 */
.contact__input:focus,
.contact__textarea:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* ===================== */
/*   OFFICE 앱별 카드 스타일  */
/* ===================== */

.office-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.office-card-excel {
    border-color: rgba(33, 115, 70, 0.4) !important;
}

.office-card-excel:hover {
    border-color: #217346 !important;
    box-shadow: 0 8px 20px rgba(33, 115, 70, 0.3) !important;
}

.office-card-excel .office-icon {
    color: #2ea85e;
}

.office-card-excel .intro-card-title {
    color: #217346 !important;
}

.office-card-ppt {
    border-color: rgba(210, 71, 38, 0.4) !important;
}

.office-card-ppt:hover {
    border-color: #D24726 !important;
    box-shadow: 0 8px 20px rgba(210, 71, 38, 0.3) !important;
}

.office-card-ppt .office-icon {
    color: #f97316;
}

.office-card-ppt .intro-card-title {
    color: #D24726 !important;
}

.office-card-word {
    border-color: rgba(43, 87, 154, 0.4) !important;
}

.office-card-word:hover {
    border-color: #2B579A !important;
    box-shadow: 0 8px 20px rgba(43, 87, 154, 0.3) !important;
}

.office-card-word .office-icon {
    color: #3b82f6;
}

.office-card-word .intro-card-title {
    color: #2B579A !important;
}

.office-icon {
    margin-bottom: 0.75rem;
}

/* ===================== */
/*   FEATURES 카테고리 스타일  */
/* ===================== */

.features__category {
    margin-bottom: 3rem;
}

.features__category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.features__category-title svg {
    flex-shrink: 0;
}

.excel-title {
    color: #2ea85e;
    border-bottom-color: rgba(33, 115, 70, 0.3);
}

.excel-title svg {
    stroke: #2ea85e;
}

.ppt-title {
    color: #f97316;
    border-bottom-color: rgba(210, 71, 38, 0.3);
}

.ppt-title svg {
    stroke: #f97316;
}

.word-title {
    color: #3b82f6;
    border-bottom-color: rgba(43, 87, 154, 0.3);
}

.word-title svg {
    stroke: #3b82f6;
}

.common-title {
    color: #9333ea;
    border-bottom-color: rgba(119, 25, 170, 0.3);
}

.common-title svg {
    stroke: #9333ea;
}

/* 앱별 Feature 아이템 색상 */
.feature__item--excel .feature__icon svg {
    stroke: #2ea85e !important;
}

.feature__item--excel .feature__title {
    color: #2ea85e !important;
}

.feature__item--excel .feature__description {
    color: rgba(46, 168, 94, 0.75) !important;
}

.feature__item--ppt .feature__icon svg {
    stroke: #f97316 !important;
}

.feature__item--ppt .feature__title {
    color: #f97316 !important;
}

.feature__item--ppt .feature__description {
    color: rgba(249, 115, 22, 0.75) !important;
}

.feature__item--word .feature__icon svg {
    stroke: #3b82f6 !important;
}

.feature__item--word .feature__title {
    color: #3b82f6 !important;
}

.feature__item--word .feature__description {
    color: rgba(59, 130, 246, 0.75) !important;
}

/* 공통 기능 스타일 */
.feature__icon svg {
    stroke: #9333ea !important;
}

.feature__title {
    color: #9333ea !important;
}

.feature__description {
    color: rgba(147, 51, 234, 0.75) !important;
}

/* Light 모드 앱별 색상 */
[data-theme="light"] .office-card-excel .intro-card-title {
    color: #217346 !important;
}

[data-theme="light"] .office-card-ppt .intro-card-title {
    color: #c03e1a !important;
}

[data-theme="light"] .office-card-word .intro-card-title {
    color: #2B579A !important;
}

[data-theme="light"] .feature__item--excel .feature__title {
    color: #217346 !important;
}

[data-theme="light"] .feature__item--excel .feature__description {
    color: #2D5A47 !important;
}

[data-theme="light"] .feature__item--ppt .feature__title {
    color: #c03e1a !important;
}

[data-theme="light"] .feature__item--ppt .feature__description {
    color: #8b4513 !important;
}

[data-theme="light"] .feature__item--word .feature__title {
    color: #2B579A !important;
}

[data-theme="light"] .feature__item--word .feature__description {
    color: #3a5a80 !important;
}

[data-theme="light"] .feature__title {
    color: #6b21a8 !important;
}

[data-theme="light"] .feature__description {
    color: var(--light-text-secondary) !important;
}

/* ===================== */
/*   소개 섹션 카드 스타일   */
/* ===================== */

.intro-cards-wrapper {
    padding: 2rem;
}

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

.intro-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    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: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(119, 25, 170, 0.2);
}

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

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

/* Light 모드 - 카드에 테마 컬러 틴트 적용 */
[data-theme="light"] .intro-card {
    background: linear-gradient(135deg, rgba(119, 25, 170, 0.05) 0%, rgba(147, 51, 234, 0.03) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(119, 25, 170, 0.08);
}

[data-theme="light"] .intro-card:hover {
    background: linear-gradient(135deg, rgba(119, 25, 170, 0.1) 0%, rgba(147, 51, 234, 0.06) 100%);
    box-shadow: 0 8px 24px rgba(119, 25, 170, 0.2);
    border-color: #7719AA;
}

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

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

/* ===================== */
/*   레이아웃 고정값        */
/* ===================== */

.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;
}

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

/* ===================== */
/*   반응형 디자인         */
/* ===================== */

@media (max-width: 768px) {
    .office-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .intro-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features__category-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .intro-cards-wrapper {
        padding: 1rem;
    }

    .intro-card {
        padding: 1rem;
    }

    .office-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* 갤럭시폴드 접은 상태 */
@media (max-width: 400px) {
    .home__title {
        font-size: 1.8rem;
    }

    .home__description {
        font-size: 0.9rem;
    }

    .section__title {
        font-size: 1.3rem;
    }

    .features__category-title {
        font-size: 1rem;
    }

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

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