/*
 * WindStory 슬라이드 - 모던 SaaS 대시보드 CSS
 */

/* Pretendard - 한국어 최적화 모던 산세리프 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fafaf8;
    --bg-tertiary: #f3f3f1;
    --bg-hover: #eeedeb;
    --bg-elevated: #ffffff;

    /* Text hierarchy */
    --text-primary: #1c1c1a;
    --text-secondary: #5f5f5c;
    --text-tertiary: #9b9a97;
    --text-disabled: #c4c4c0;

    /* Borders */
    --border-color: #e8e8e5;
    --border-strong: #d4d4d1;

    /* Accent (brand blue) */
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-subtle: rgba(37, 99, 235, 0.08);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #2563eb;

    /* Semantic colors */
    --success-color: #16a34a;
    --success-bg: #f0fdf4;
    --warning-color: #ca8a04;
    --warning-bg: #fefce8;
    --error-color: #dc2626;
    --error-bg: #fef2f2;
    --info-color: #2563eb;
    --info-bg: #eff6ff;

    /* Status badge colors */
    --status-completed-bg: #dcfce7;
    --status-completed-text: #166534;
    --status-processing-bg: #fef3c7;
    --status-processing-text: #92400e;
    --status-draft-bg: #f1f5f9;
    --status-draft-text: #475569;
    --status-error-bg: #fee2e2;
    --status-error-text: #991b1b;
    --status-script-ready-bg: #ede9fe;
    --status-script-ready-text: #6d28d9;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 48px;

    /* Typography */
    --font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-family-mono: 'D2Coding', 'Consolas', 'Monaco', 'Courier New', monospace;
    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-base: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* 레이아웃 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 사이드바 */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow: hidden;
}

.sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-header .logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    color: var(--accent-color);
}

.sidebar-header h1 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section {
    padding: 8px;
}

.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    padding: 8px;
    background-color: var(--bg-secondary);
}

.sidebar-section-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 6px 4px;
}

/* 사이드바 접기/펼치기 */
.sidebar-section-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.15s;
}

.sidebar-section-toggle:hover {
    color: var(--text-secondary);
}

.sidebar-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.sidebar-section.collapsed .sidebar-chevron {
    transform: rotate(-90deg);
}

.sidebar-section-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-section.collapsed .sidebar-section-content {
    max-height: 0;
}

.sidebar-section-count {
    margin-left: auto;
    font-size: 10px;
    background: var(--bg-tertiary);
    padding: 1px 7px;
    border-radius: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    font-size: var(--text-sm);
}

.sidebar-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-item .icon-svg {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-item .icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-item.active {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-item .icon {
    font-size: 16px;
    opacity: 0.8;
}

.sidebar-item .text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.sidebar-item .status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: var(--status-draft-bg);
    color: var(--status-draft-text);
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-item .status.completed {
    background-color: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.sidebar-item .status.processing {
    background-color: var(--status-processing-bg);
    color: var(--status-processing-text);
}

.sidebar-item .status.error {
    background-color: var(--status-error-bg);
    color: var(--status-error-text);
}

.sidebar-item .status.script_ready {
    background-color: var(--status-script-ready-bg);
    color: var(--status-script-ready-text);
}

/* 새 프로젝트 버튼 */
.new-project-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin: 8px 10px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.15s;
    flex-shrink: 0;
}

.new-project-btn .icon-svg {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.new-project-btn .icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.new-project-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-tertiary);
}

/* 사이드바 사용자 정보 */
.sidebar-user-section {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.1s;
}

.sidebar-user-info:hover {
    background-color: var(--bg-hover);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 비로그인 상태: 사이드바 없을 때 전체 화면 */
.app-container:not(:has(.sidebar)) .main-content {
    margin-left: 0;
}

/* 헤더 */
.header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-brand:hover {
    opacity: 0.7;
}

.header-logo {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.header-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-link {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-hover);
    border-radius: 4px;
}

/* 헤더 반응형 */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .header-left {
        gap: 16px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-brand-name {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

.header-title {
    font-size: 14px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;  /* 명시적 오른쪽 정렬 */
}

.header-actions .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background: var(--text-primary);
    color: white;
    border: none;
    transition: all 0.2s;
}

.header-actions .btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

#user-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 버튼 스타일 */
/* 버튼 시스템 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    text-decoration: none;
    letter-spacing: 0.01em;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm { padding: 4px 10px; font-size: var(--text-xs); }
.btn-lg, .btn-large { padding: 12px 24px; font-size: var(--text-md); }

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

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

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

.btn-success:hover {
    opacity: 0.9;
}

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

.btn-outline:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-strong);
    color: var(--text-primary) !important;
}

/* 콘텐츠 영역 */
.content {
    flex: 1;
    padding: 24px 32px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.page-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: var(--text-base);
}

/* 프로젝트 그리드 (대시보드) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 프로젝트 카드 */
.project-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.project-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--accent-subtle);
}

.project-card-icon img {
    width: 20px;
    height: 20px;
}

.project-card-meta {
    flex: 1;
    min-width: 0;
}

.project-card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-date {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.project-card-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.project-card-file {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-file img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.project-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* 상태 배지 (카드용) */
.status-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge.completed {
    background-color: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.status-badge.processing {
    background-color: var(--status-processing-bg);
    color: var(--status-processing-text);
}

.status-badge.error {
    background-color: var(--status-error-bg);
    color: var(--status-error-text);
}

.status-badge.script_ready {
    background-color: var(--status-script-ready-bg);
    color: var(--status-script-ready-text);
}

.status-badge.draft {
    background-color: var(--status-draft-bg);
    color: var(--status-draft-text);
}

.status-badge.pending {
    background-color: var(--status-processing-bg);
    color: var(--status-processing-text);
}

/* 뷰 토글 */
.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.view-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.15s;
}

.view-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.view-btn img {
    width: 16px;
    height: 16px;
}

/* 기존 slide-card 호환성 유지 */
.slides-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slide-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.slide-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

/* 스켈레톤 로딩 */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 140px;
    border-radius: var(--radius-lg);
}

.slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.slide-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.slide-number .badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

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

.slide-status .confirmed {
    color: var(--success-color);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.slide-body {
    display: flex;
    gap: 16px;
    padding: 16px;
}

.slide-preview {
    flex: 2;
    min-height: 300px;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slide-preview img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.slide-preview .placeholder {
    color: var(--text-tertiary);
    text-align: center;
}

.slide-preview .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slide-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 입력 필드 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-disabled);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* 라디오 옵션 (제목 슬라이드 스타일 선택) */
.radio-option {
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--accent-color) !important;
    background-color: var(--bg-secondary);
}

.radio-option input[type="radio"]:checked ~ div {
    color: var(--accent-color);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--accent-color) !important;
    background-color: var(--bg-secondary);
}

/* 파일 업로드 */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-upload:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.file-upload input {
    display: none;
}

.file-upload .icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-tertiary);
}

.file-upload .text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 파일 업로드 말풍선 툴팁 */
.file-upload-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 10;
    animation: tooltipBounce 2s ease-in-out infinite;
}

.file-upload-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #764ba2 transparent transparent transparent;
}

@keyframes tooltipBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 탭 */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.tab {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.1s;
}

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

.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-primary);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-tertiary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 13px;
    margin-bottom: 16px;
}

/* 로딩 스피너 */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 알림 토스트 */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 16px;
    background-color: var(--text-primary);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.2s ease;
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--error-color);
}

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

/* 반응형 디자인 */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: var(--header-height);
        left: -100%;
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .main-footer {
        padding-left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .content {
        padding: 16px;
    }
    
    .slide-body {
        flex-direction: column;
    }
    
    .header {
        padding: 0 12px;
    }
    
    .header-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .project-card {
        padding: 16px;
    }
    
    .modal {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .admin-nav-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .sidebar-header h1 {
        font-size: 12px;
    }
    
    .sidebar-item {
        padding: 8px;
        font-size: 13px;
    }
    
    .new-project-btn {
        padding: 10px;
        font-size: 12px;
    }
    
    .header-title {
        font-size: 13px;
    }
    
    .header-actions {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .project-card {
        padding: 12px;
    }
    
    .project-card h3 {
        font-size: 16px;
    }
    
    .project-card p {
        font-size: 13px;
    }
    
    .modal {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-content {
        padding: 12px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 12px;
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
    
    .admin-container {
        padding: 12px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .admin-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-nav-item {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .admin-section {
        padding: 16px;
    }
    
    .table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 12px;
        min-width: 800px;
    }
    
    table th,
    table td {
        padding: 8px;
    }
    
    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .gallery-container,
    .settings-container {
        padding: 12px;
    }
    
    .gallery-header h1 {
        font-size: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-card {
        margin-bottom: 16px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .search-bar button {
        width: 100%;
    }
}

/* 작은 모바일 (360px 이하) */
@media (max-width: 360px) {
    .sidebar-header {
        padding: 10px;
    }
    
    .sidebar-header h1 {
        font-size: 11px;
    }
    
    .header {
        padding: 0 8px;
    }
    
    .header-title {
        font-size: 12px;
    }
    
    .project-card h3 {
        font-size: 14px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .stat-card .value {
        font-size: 20px;
    }
}

/* 프로그레스 바 */
.progress-bar {
    height: 4px;
    background-color: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar .progress {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

/* 액션 버튼 그룹 */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-buttons .btn {
    flex: 1;
}

/* AI 추천 스타일 */
.recommendation-container {
    min-height: 200px;
}

.recommendation-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-section {
    background-color: var(--bg-secondary);
    padding: 12px;
    border-radius: 6px;
}

.rec-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rec-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.rec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rec-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.rec-tips {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.rec-tips li {
    margin-bottom: 4px;
}

.rec-prompt {
    font-size: 12px;
    line-height: 1.5;
    background-color: var(--bg-primary);
    min-height: 200px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

/* AI 추천 탭 하이라이트 */
.tab[data-tab^="tab-recommend"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 4px;
    margin-right: 4px;
}

.tab[data-tab^="tab-recommend"]:hover {
    opacity: 0.9;
}

.tab[data-tab^="tab-recommend"].active {
    border-bottom-color: transparent;
}

/* 아이콘 스타일 */
.icon-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    color: inherit;
    flex-shrink: 0;
}

.icon-svg-small {
    width: 16px;
    height: 16px;
}

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

.sidebar-item .icon-svg,
.sidebar-item .icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-item .icon-svg svg {
    width: 100%;
    height: 100%;
}

.sidebar-item .icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.new-project-btn .icon-svg {
    width: 16px;
    height: 16px;
}

.new-project-btn .icon-svg img {
    width: 100%;
    height: 100%;
}

/* 랜딩 페이지 스타일 */
.landing-hero {
    text-align: center;
    padding: 80px 24px;
    background: transparent;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
    overflow: visible;
}

.landing-hero > * {
    position: relative;
    z-index: 1;
}

/* 새로운 랜딩 히어로 섹션 */
.landing-hero-section {
    padding: 0;
    margin: 0;
}

.hero-illustration {
    width: 100%;
    text-align: center;
    margin-top: -150px;
    margin-bottom: -130px;
}

.hero-illustration img {
    width: 90%;
    max-width: none;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-header {
    text-align: center;
    padding: 0 20px;
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1a202c;
    margin: 0;
    padding: 0;
}

.hero-sub-title {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #4a5568;
    margin: 8px 0 0 0;
    padding: 0;
}

.landing-hero-section .hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.landing-hero-section .hero-actions .btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
}

.landing-hero-section .trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
}

.landing-hero-section .trust-indicators span {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-hero-section .trust-indicators span img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.hero-logo {
    margin-bottom: 0 !important;
}

.hero-logo img {
    width: 100px !important;
    height: 100px !important;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
}

.hero-subdescription {
    font-size: 16px;
    margin-bottom: 0;
    color: var(--text-tertiary);
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

/* 기능 아이콘 그리드 */
.hero-features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-feature-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.hero-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

/* 각 아이콘별 파스텔 컬러 */
.hero-feature-item:nth-child(1) .hero-feature-icon {
    background: linear-gradient(135deg, #a8d8ea 0%, #aa96da 100%);
}

.hero-feature-item:nth-child(2) .hero-feature-icon {
    background: linear-gradient(135deg, #fcbad3 0%, #ffcfd2 100%);
}

.hero-feature-item:nth-child(3) .hero-feature-icon {
    background: linear-gradient(135deg, #ffffd2 0%, #ffd6a5 100%);
}

.hero-feature-item:nth-child(4) .hero-feature-icon {
    background: linear-gradient(135deg, #caffbf 0%, #9bf6ff 100%);
}

.hero-feature-item:nth-child(5) .hero-feature-icon {
    background: linear-gradient(135deg, #ffc6ff 0%, #bdb2ff 100%);
}

.hero-feature-item:nth-child(6) .hero-feature-icon {
    background: linear-gradient(135deg, #a0c4ff 0%, #bdb2ff 100%);
}

.hero-feature-item:hover .hero-feature-icon {
    transform: scale(1.1);
}

.hero-feature-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.hero-feature-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .hero-feature-item {
        padding: 20px 12px;
    }
    
    .hero-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary.btn-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-primary.btn-large:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8a 100%);
    color: white;
}

.btn-outline {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* 설정 모달 (마누스 스타일) */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.settings-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.settings-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.settings-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.settings-modal-body {
    display: flex;
    overflow: hidden;
    flex: 1;
}

.settings-sidebar {
    width: 280px;
    padding: 24px;
    border-right: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.settings-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--border-color);
}

.settings-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-tertiary);
}

.settings-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-align: center;
}

.settings-user-email {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-align: left;
}

.settings-tab-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

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

.settings-tab-btn svg {
    flex-shrink: 0;
}

.settings-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.credits-balance-card {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.credits-balance-amount {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
}

.credits-balance-label {
    font-size: 16px;
    opacity: 0.9;
}

.subscription-info-card {
    padding: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* 반응형 */
@media (max-width: 768px) {
    .settings-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .settings-modal-body {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .settings-tabs {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .settings-tab-btn {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .settings-content {
        padding: 20px;
    }
}

/* 기능 소개 섹션 */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--card-bg, var(--bg-secondary));
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 소개 섹션 카드 (노션 스타일) */
.introduce-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

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

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .introduce-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    /* 새 랜딩 히어로 섹션 */
    .hero-illustration {
        margin-top: -40px;
        margin-bottom: -30px;
    }
    
    .hero-illustration img {
        width: 100%;
    }
    
    .hero-main-title {
        font-size: 1.5rem !important;
    }
    
    .hero-sub-title {
        font-size: 0.9rem !important;
    }
    
    .landing-hero-section .hero-actions {
        flex-direction: column;
        padding: 0 16px;
    }
    
    .landing-hero-section .hero-actions .btn {
        width: 100%;
        padding: 12px 24px;
    }
    
    .landing-hero-section .trust-indicators {
        gap: 12px;
        padding: 12px 16px;
    }
    
    .landing-hero-section .trust-indicators span {
        font-size: 0.75rem;
    }

    /* 기존 랜딩 히어로 섹션 */
    .landing-hero {
        padding: 0 !important;
    }

    .hero-illustration-banner {
        padding: 24px 16px !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100%;
        padding: 0 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-indicators {
        gap: 8px !important;
        padding: 12px 16px !important;
    }

    .trust-indicators span {
        font-size: 0.75rem !important;
    }

    .introduce-section {
        padding: 32px 16px !important;
    }

    .introduce-section h2 {
        font-size: 1.5rem !important;
    }

    .introduce-section > div > p {
        font-size: 0.95rem !important;
        margin-bottom: 32px !important;
    }

    .introduce-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .introduce-card {
        padding: 24px !important;
    }

    .introduce-card h3 {
        font-size: 1.1rem !important;
    }

    .introduce-card p {
        font-size: 0.9rem !important;
    }

    .how-it-works-section {
        padding: 32px 16px !important;
    }

    .how-it-works-section h2 {
        font-size: 1.5rem !important;
    }
    
    /* About 섹션 반응형 */
    .about-section {
        padding: 48px 16px !important;
    }
    
    .about-section > div > div {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .about-section h2 {
        font-size: 1.5rem !important;
    }
    
    .about-section h3 {
        font-size: 1.1rem !important;
    }
    
    /* Contact 섹션 반응형 */
    .contact-section {
        padding: 40px 16px !important;
    }
    
    .contact-section h2 {
        font-size: 1.4rem !important;
    }
    
    .contact-section > div > div {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .contact-section a {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Terms & Privacy 섹션 반응형 */
    .terms-section,
    .privacy-section {
        padding: 48px 16px !important;
    }
    
    .terms-section h2,
    .privacy-section h2 {
        font-size: 1.5rem !important;
    }
    
    .terms-section h3,
    .privacy-section h3 {
        font-size: 1.1rem !important;
    }
    
    .terms-section > div > div,
    .privacy-section > div > div {
        padding: 24px !important;
    }

    .step-item {
        flex-direction: column !important;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 16px auto !important;
    }

    .steps-container {
        gap: 24px !important;
    }
}

/* 반응형 - 작은 모바일 */
@media (max-width: 480px) {
    .hero-illustration {
        margin-top: -20px;
        margin-bottom: -15px;
    }
    
    .hero-main-title {
        font-size: 1.3rem !important;
    }
    
    .hero-sub-title {
        font-size: 0.85rem !important;
        line-height: 1.3;
    }
    
    .landing-hero-section .trust-indicators {
        flex-direction: column;
        gap: 8px;
    }
    
    .landing-hero-section .trust-indicators span {
        font-size: 0.7rem;
    }
}

/* 갤러리 섹션 */
.gallery-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

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

.section-description {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.projects-grid-landing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.gallery-card-landing {
    background: var(--card-bg, var(--bg-secondary));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card-landing:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.gallery-card-landing .gallery-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.gallery-card-landing .gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-landing .gallery-card-body {
    padding: 20px;
}

.gallery-card-landing .gallery-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.gallery-card-landing .gallery-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-landing .gallery-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

.gallery-card-landing .gallery-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-card-landing .gallery-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 풋터 */
/* 푸터 스타일 (Napkin 스타일) */
.main-footer {
    background: #3d3d3d;
    color: #b8b8b8;
    padding: 48px 0 32px;
    margin-top: 80px;
    padding-left: var(--sidebar-width);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 60px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.footer-copyright {
    font-size: 14px;
    color: #888;
    margin: 0;
}

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

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: #b8b8b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b8b8;
    transition: all 0.2s;
    border-radius: 6px;
}

.social-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* 비로그인 상태: 사이드바 없을 때 푸터 전체 화면 */
.app-container:not(:has(.sidebar)) .main-footer {
    padding-left: 0;
}

/* 푸터 반응형 */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-subdescription {
        font-size: 14px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .projects-grid-landing {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* ===================================
   언어 선택기 스타일
   =================================== */
.language-selector-wrapper {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.language-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    max-width: 110px;
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 100px;
}

.language-selector:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-hover);
}

.language-selector:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.2);
}

.language-selector option {
    padding: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* 다크 모드 대응 */
@media (prefers-color-scheme: dark) {
    .language-selector {
        background-color: var(--bg-secondary);
        border-color: var(--border-color);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9a97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .language-selector-wrapper {
        margin-right: 0;
    }

    .language-selector {
        padding: 4px 20px 4px 6px;
        font-size: 11px;
        min-width: 60px;
        max-width: 90px;
    }
}

/* ============================================ */
/* 빠른 인포그래픽 탭 버튼 */
/* ============================================ */

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tab-button {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 스피너 애니메이션 */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

