/* 컴팩트 레이아웃 스타일 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #00c853;
    --warning-color: #ffb800;
    --danger-color: #ff5252;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 컴팩트 네비게이션 */
.navbar-compact {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-slogan {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    margin-left: 8px;
}

.logo-divider {
    color: #ddd;
    margin: 0 8px;
    font-size: 14px;
}

.logo-description {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.logo-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

/* 메인 페이지 브랜드 섹션 스타일 */
.brand-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-section .logo {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.brand-section .tagline {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 400;
}

.brand-section .subtitle {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 400;
}

.brand-section .ai-icon {
    font-size: 16px;
    color: #667eea;
    margin-left: 4px;
}

.brand-section .divider {
    color: #ddd;
    font-size: 11px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item i {
    color: var(--primary-color);
}

.stat-number {
    font-weight: 700;
    color: #333;
}

.stat-divider {
    color: #ddd;
}

/* 히어로 섹션 삭제됨 - 관련 스타일 제거 */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 카테고리 탭 관련 스타일 제거 */
.category-tabs,
.tabs-wrapper,
.tab-button,
.tab-indicator {
    display: none !important;
}

.tabs-wrapper {
    display: flex;
    gap: 10px;
    position: relative;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover {
    background: #f8f9fa;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tab-button i {
    font-size: 12px;
}

/* 컴팩트 기능 그리드 */
.features-grid-compact {
    background: #f8f9fa;
    padding: 10px 0; /* 절반으로 감소 */
    min-height: calc(100vh - 60px - 150px - 70px);
}

/* 기능 카드 그리드 간격 조정 */
.features-wrapper {
    gap: 24px; /* 카드 간 간격 적절히 조정 */
    margin-bottom: 0; /* 하단 여백 제거 */
}

/* 컴팩트한 레이아웃을 위한 전체 조정 */
main {
    min-height: calc(100vh - 60px - 200px); /* 빈 공간 최소화 */
}

.features-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px; /* 번호가 잘리지 않도록 상단 여백 */
    /* 그리드 영향 제거 */
    align-items: start;
    justify-items: start;
}

/* 기능 카드 링크 스타일 */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 그리드 셀 내에서 정확한 크기 보장 */
    width: 100%;
    height: 100%;
}

.feature-card-link:hover {
    text-decoration: none;
}

/* 호버 CSS 완전 초기화 - 최소 테스트 버전 */
.feature-card-compact {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 280px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.feature-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-hover-content {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 25%;  /* 상단 25% 지점부터 시작 */
    bottom: 25%;  /* 하단 25% 남기기 */
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    overflow-y: auto;  /* 내용이 길면 스크롤 */
    /* 스크롤바 숨기기 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Webkit 브라우저(Chrome, Safari, Edge)에서 스크롤바 숨기기 */
.card-hover-content::-webkit-scrollbar {
    display: none;
}

.feature-card-compact:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* 호버 내용 스타일 */
.card-full-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    max-height: none; /* 최대 높이 제한 제거 */
    overflow-y: visible; /* 스크롤 제거 */
    /* 스크롤바 숨기기 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Webkit 브라우저에서 스크롤바 숨기기 */
.card-full-description::-webkit-scrollbar {
    display: none;
}

.card-full-description p {
    margin-bottom: 8px;
}

/* 카드 기본 스타일 */
.card-header {
    padding: 15px 20px;
    color: white;
    position: relative;
}

.card-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header .card-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

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

.card-body {
    padding: 20px;
    flex: 1;
    position: relative;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* 기능 카드 설명 스타일 */
.feature-description {
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.feature-description .line1,
.feature-description .line2 {
    display: block;
    color: #666;
}

/* 기능 카드 호버 툴팁 - 완전 제거 */
.feature-tooltip {
    display: none !important;
}

.tooltip-line {
    display: none !important;
}

.feature-card-compact:hover .feature-tooltip {
    display: none !important;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.btn-card-action {
    display: flex;
    justify-content: space-between; /* 양쪽 정렬 */
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea, #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn-card-action span {
    flex: 1;
    text-align: center; /* 버튼 타이틀 중앙 정렬 */
}

.btn-card-action i {
    font-size: 16px;
}

.btn-card-action:hover {
    background: linear-gradient(135deg, #5a6fd8, #5a6fd8);
}

/* 더 많은 기능 예고 */
.more-features-teaser {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8f9fa, white);
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 16px; /* 5/6로 감소 (20px → 16px) */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8f9fa, white);
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-section:hover {
    background: linear-gradient(135deg, #f0f2ff, #e8ecff);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.teaser-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.teaser-content i {
    font-size: 24px;
    color: #999;
}

.teaser-content span {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.btn-subscribe {
    background: white;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    pointer-events: none;
}

.btn-subscribe:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-subscribe:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-subscribe:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 빠른 시작 가이드 */
.quick-start-compact {
    background: white;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.quick-start-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.step-arrow {
    color: #ddd;
    font-size: 14px;
}

/* 개선된 푸터 */
.footer {
    background-color: #667eea; /* 로고 색과 동일 */
    color: #ffffff; /* 흰색 텍스트 */
    padding: 40px 0 30px; /* 상단 여백 감소 */
    margin-top: 0; /* 위 섹션과의 여백 제거 */
}

.footer-menu {
    text-align: center; /* 가운데 정렬 */
    margin-bottom: 20px; /* 메뉴와 기업 소개 사이 간격 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.footer-menu .divider {
    display: none; /* 구분선 제거 */
}

.footer-spacing {
    height: 20px; /* 한 줄 공백 */
}

.footer-company {
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 15px; /* 기업 소개와 카피라이트 사이 간격 */
}

.footer-company p {
    margin: 4px 0;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.8;
}

/* 컴팩트 푸터 */
.footer-compact {
    background: white;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.footer-wrapper {
    text-align: center;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    justify-content: center;
}

.footer-company {
    margin-bottom: 15px;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.8;
    text-align: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.footer-links .divider {
    display: none; /* 구분선 제거 */
}

.footer-copyright {
    font-size: 14px;
    color: #ffffff;
    padding-top: 0;
    text-align: center;
}

/* 사용자 메뉴 드롭다운 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 알림 구독 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.biz-balance {
    background: linear-gradient(135deg, #FFB800, #FFA000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* 인증 버튼 */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #667eea, #667eea);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #5a6fd8);
}

/* 애니메이션 추가 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card-compact {
    animation: slideIn 0.5s ease forwards;
}

.feature-card-compact:nth-child(1) { animation-delay: 0.1s; }
.feature-card-compact:nth-child(2) { animation-delay: 0.15s; }
.feature-card-compact:nth-child(3) { animation-delay: 0.2s; }
.feature-card-compact:nth-child(4) { animation-delay: 0.25s; }
.feature-card-compact:nth-child(5) { animation-delay: 0.3s; }
.feature-card-compact:nth-child(6) { animation-delay: 0.35s; }

/* 로딩 상태 */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-compact {
        height: auto;
        padding: 10px 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-stats {
        display: none;
    }
    
    .logo-slogan,
    .logo-divider,
    .logo-description {
        display: none;
    }
    
    .brand-name {
        font-size: 32px;
    }
    
    .brand-slogan {
        font-size: 18px;
    }
    
    .brand-description {
        font-size: 14px;
    }
    
    .features-wrapper {
        grid-template-columns: 1fr;
    }
    
    .feature-card-compact {
        height: auto;
        min-height: 250px;
        position: relative;
        box-sizing: border-box;
    }
    
    .quick-start-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 컴팩트 버전 (화면이 작을 때) */
@media (max-height: 768px) {
    .brand-name {
        font-size: 36px;
        margin-bottom: 4px;
    }
    
    .brand-slogan {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .brand-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* 초소형 화면 */
@media (max-width: 480px) {
    .brand-name {
        font-size: 28px;
    }
    
    .brand-slogan {
        font-size: 16px;
    }
    
    .brand-description {
        font-size: 13px;
    }
}

/* 배경 장식 요소 제거됨 */
