/* 오늘의 소식 홈페이지 - 공통 스타일 */

/* ===== 리셋 및 기본 설정 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 앵커 스크롤 오프셋 (헤더 높이 고려) */
.portfolio-detail {
    scroll-margin-top: 100px;
}

/* 도구 정보 섹션 스타일 */
.tools-info-section {
    margin-top: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    border: 1.5px solid #fde68a;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.08);
}

.tools-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #a16207;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-info-title::before {
    content: "📎";
    font-size: 18px;
}

.tools-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tool-link {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    border: 1.5px solid #fde68a;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #a16207;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(251, 191, 36, 0.08);
}

.tool-link:hover {
    background: #fef9c3;
    border-color: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(251, 191, 36, 0.15);
    color: #92400e;
}

.tools-info-notice {
    font-size: 12px;
    color: #b45309;
    line-height: 1.6;
    opacity: 0.75;
}

/* 운영 노트 아코디언 스타일 */
.portfolio-detail {
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-detail.collapsed .portfolio-content {
    display: none;
}

/* 기준 정리 아코디언 스타일 */
.standard-item {
    position: relative;
    transition: all 0.3s ease;
}

.standard-item.collapsed .standard-content {
    display: none;
}

.standard-header {
    position: relative;
}

.portfolio-toggle-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.portfolio-toggle-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.portfolio-toggle-btn::after {
    content: "▼";
    transition: transform 0.3s ease;
    font-size: 12px;
}

.portfolio-detail:not(.collapsed) .portfolio-toggle-btn::after {
    transform: rotate(180deg);
}

.portfolio-detail:not(.collapsed) .portfolio-toggle-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.portfolio-detail:not(.collapsed) .portfolio-toggle-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.portfolio-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #eff6ff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 헤더 및 네비게이션 ===== */
.header {
    background-color: var(--bg-primary);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

/* 네비게이션 메뉴 */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ===== 푸터 ===== */
.footer {
    background-color: var(--text-primary);
    color: #ffffff;
    padding: 60px 20px 30px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-info-notice {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-policy-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-policy-links a {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-policy-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 13px;
    color: #9ca3af;
}

/* ===== 공통 컨테이너 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* ===== 버튼 스타일 ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* ===== 카드 스타일 ===== */
.card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* ===== 그리드 레이아웃 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ===== 배지/태그 ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background-color: var(--bg-accent);
    color: var(--primary-color);
}

.badge.beauty {
    background-color: #fce7f3;
    color: #be185d;
}

.badge.restaurant,
.badge.cafe {
    background-color: #fef3c7;
    color: #b45309;
}

.badge.hospital {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge.fitness {
    background-color: #d1fae5;
    color: #047857;
}

.badge.education,
.badge.academy {
    background-color: #e0e7ff;
    color: #4338ca;
}

.badge.retail {
    background-color: #fce7f3;
    color: #be185d;
}

.badge.office {
    background-color: #e5e7eb;
    color: #374151;
}

.badge.realestate {
    background-color: #ddd6fe;
    color: #6d28d9;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 20px 0;
        font-size: 18px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-policy-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== 유틸리티 클래스 ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

/* ===== 인사이트 상세 페이지 스타일 ===== */
.article-detail {
    padding: 40px 0 80px;
    background-color: var(--bg-primary);
}

.article-detail .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.article-meta .category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.category-badge.beauty {
    background-color: #fce7f3;
    color: #be185d;
}

.category-badge.restaurant,
.category-badge.cafe {
    background-color: #fef3c7;
    color: #b45309;
}

.category-badge.hospital {
    background-color: #dbeafe;
    color: #1e40af;
}

.category-badge.fitness {
    background-color: #d1fae5;
    color: #047857;
}

.category-badge.education,
.category-badge.academy {
    background-color: #e0e7ff;
    color: #4338ca;
}

.category-badge.retail {
    background-color: #fce7f3;
    color: #be185d;
}

.category-badge.office {
    background-color: #e5e7eb;
    color: #374151;
}

.category-badge.realestate {
    background-color: #ddd6fe;
    color: #6d28d9;
}

.article-meta .category {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.article-meta .date {
    font-size: 14px;
    color: var(--text-light);
}

.article-header h1 {
    font-size: 36px;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.article-summary {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 28px;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.article-body ul,
.article-body ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-body li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.article-conclusion {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.article-conclusion h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.article-conclusion p {
    line-height: 1.8;
    margin-bottom: 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.article-tags .tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-back:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 반응형 - 상세 페이지 */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 28px;
    }

    .article-summary {
        font-size: 16px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 24px;
        margin-top: 40px;
    }

    .article-body h3 {
        font-size: 20px;
        margin-top: 30px;
    }

    .article-conclusion {
        padding: 20px;
    }

    .article-navigation {
        flex-direction: column;
    }

    .btn-back {
        text-align: center;
    }
}

/* ===== 히어로 섹션 (아카이브 홈) ===== */
.hero-section-archive {
    position: relative;
    background-color: #1a1a2e;
    background-image: url('../external/hero-bg-new.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* 오버레이 제거 - 원본 이미지만 표시 */

.hero-section-archive .container {
    position: relative;
    z-index: 2;
}

.hero-content-archive {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title-archive {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.8), 3px 3px 12px rgba(0, 0, 0, 1), -1px -1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.5px;
}

.hero-description-archive {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.8), 2px 2px 10px rgba(0, 0, 0, 1), -1px -1px 2px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .hero-section-archive {
        padding: 80px 0 60px;
    }

    .hero-title-archive {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-description-archive {
        font-size: 16px;
    }
}

/* ===== 운영 노트 (포트폴리오) 스타일 ===== */
.portfolio-notice {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 40px;
}

.notice-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.notice-content p {
    line-height: 1.7;
    color: var(--text-secondary);
}

.notice-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.portfolio-detail {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.portfolio-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.portfolio-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.portfolio-meta .badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.portfolio-meta .badge.secondary {
    background-color: var(--success-color);
}

.portfolio-date {
    font-size: 14px;
    color: var(--text-light);
}

.portfolio-header h2 {
    font-size: 28px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.portfolio-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.portfolio-section {
    padding: 0;
}

.portfolio-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.portfolio-section p strong {
    font-weight: 600;
    color: var(--primary-color);
}

.portfolio-section ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.portfolio-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.portfolio-section li strong {
    font-weight: 600;
    color: var(--text-primary);
}

.portfolio-section a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.portfolio-section a:hover {
    color: var(--secondary-color);
}

/* 반응형 - 운영 노트 */
@media (max-width: 768px) {
    .portfolio-detail {
        padding: 25px 20px;
    }

    .portfolio-header h2 {
        font-size: 22px;
    }

    .portfolio-subtitle {
        font-size: 14px;
    }

    .portfolio-section h3 {
        font-size: 18px;
    }

    .portfolio-section p,
    .portfolio-section li {
        font-size: 15px;
    }

    .portfolio-notice {
        flex-direction: column;
        padding: 20px;
    }

    .notice-icon {
        font-size: 24px;
    }
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}
