/**
 * KSeok Lab - Page-specific Styles
 * 각 페이지별 특화 스타일
 */

/* 메인 페이지 - 검색 섹션 */
.search-section {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 800px 600px at 30% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 70% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.search-wrapper {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 25px;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    overflow: hidden;
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(159, 64, 255, 0.2);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    outline: none;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-btn {
    padding: 1.25rem 1.5rem;
    background: var(--gradient-main);
    border: none;
    border-radius: 0 25px 25px 0;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.05);
}

.search-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(159, 64, 255, 0.2);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 64, 255, 0.2);
}

.filter-btn.active {
    background: var(--gradient-main);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(159, 64, 255, 0.3);
}

/* 다크모드 검색 필터 */
[data-theme="dark"] .filter-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(159, 64, 255, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(159, 64, 255, 0.1);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--gradient-main);
    border-color: var(--primary);
    color: white;
}

/* 검색 결과 */
.search-results {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-xl);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--bg-light);
}

.results-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.results-count {
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-xl);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-card:hover::before {
    transform: scaleX(1);
}

.no-results {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

/* 카테고리 섹션 */
.categories {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

/* 카드 컨테이너에서 균등 높이 강제 */
.calculators-grid > * {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.category-card {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-light);
    transition: all 0.4s var(--transition-cubic);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.4);
}

/* 카테고리 카드 내용 영역 */
.category-content {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 카테고리 카드 액션 영역 */
.category-actions {
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-xl);
    background: linear-gradient(180deg, 
        rgba(248, 250, 252, 0) 0%, 
        rgba(248, 250, 252, 0.5) 50%, 
        rgba(248, 250, 252, 0.8) 100%
    );
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: auto;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.category-icon {
    font-size: 2.5rem;
    margin-right: var(--spacing-md);
}

.category-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 var(--spacing-md) 0 0;
}

.category-count {
    background: linear-gradient(135deg, rgba(159, 64, 255, 0.1), rgba(255, 105, 180, 0.1));
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: var(--spacing-md) 0;
    font-size: var(--font-size-sm);
}

.tool-preview {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.tool-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.tool-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.tool-name {
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.tool-status {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-live {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.15));
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.soon,
.status-soon {
    background: rgba(120,130,140,0.15);
    color: var(--text-primary);
    border: 1px solid rgba(120,130,140,0.3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .status-badge.soon,
[data-theme="dark"] .status-soon {
    background: rgba(120,130,140,0.2);
    color: var(--text-light);
    border: 1px solid rgba(120,130,140,0.4);
}

.status-beta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.15));
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.view-all-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-2xl);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-base) var(--transition-cubic);
    text-decoration: none;
    text-align: center;
    display: block;
    box-shadow: 0 6px 20px rgba(159, 64, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-btn:hover {
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(159, 64, 255, 0.4);
}

/* 서브페이지 공통 스타일 */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.content-section {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.content-section h3 {
    color: var(--text-primary);
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
    font-size: var(--font-size-lg);
}

.content-section p,
.content-section li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.content-section ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.highlight {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
    margin: var(--spacing-md) 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.feature-item {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
}

.feature-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
}

/* 폼 스타일 */
.contact-form {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.required {
    color: var(--error);
}

.submit-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity var(--transition-base);
}

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

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

/* 체크박스 스타일 */
.checkbox-group {
    margin: var(--spacing-lg) 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

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

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.checkbox-label a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* 다크모드 체크박스 스타일 */
[data-theme="dark"] .checkbox-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .checkbox-label:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .checkbox-label a {
    color: var(--primary);
}

[data-theme="dark"] .checkbox-label a:hover {
    color: var(--secondary);
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    display: none;
}

/* 다크모드 대응 */
[data-theme="dark"] .search-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .search-input {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-input::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .search-results {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .results-title {
    color: var(--text-primary);
}

[data-theme="dark"] .results-count {
    color: var(--text-secondary);
}

[data-theme="dark"] .result-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .result-title {
    color: var(--text-primary);
}

[data-theme="dark"] .result-desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .result-category {
    color: var(--text-muted);
}

[data-theme="dark"] .recent-searches {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .recent-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .recent-tag:hover {
    background: var(--bg-hover);
}

[data-theme="dark"] .suggestion-tag {
    background: linear-gradient(135deg, rgba(159, 64, 255, 0.15), rgba(255, 105, 180, 0.1));
    border: 1px solid rgba(159, 64, 255, 0.3);
    color: var(--primary);
}

[data-theme="dark"] .category-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .category-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .tool-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .tool-item:hover {
    background: var(--bg-hover);
}

[data-theme="dark"] .tool-name {
    color: var(--text-primary);
}

/* 다크모드 카테고리 영역 구분 */
[data-theme="dark"] .category-actions {
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0) 0%, 
        rgba(15, 23, 42, 0.5) 50%, 
        rgba(15, 23, 42, 0.8) 100%
    );
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

/* 최근 검색어 스타일 */
.recent-searches {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.recent-searches h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.recent-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.recent-tag {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.recent-tag:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-tag .remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: 0;
    margin-left: var(--spacing-xs);
    transition: color var(--transition-base);
}

.recent-tag .remove-btn:hover {
    color: var(--error);
}

/* 검색 추천어 스타일 */
.search-suggestions {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.search-suggestions p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* 검색 결과 카드 스타일 개선 */
.result-card {
    position: relative;
    padding: var(--spacing-lg);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.result-icon {
    font-size: var(--font-size-3xl);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.result-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.result-desc {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.result-category {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    display: inline-block;
}

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

/* 와이드 데스크톱 (기본: 4열) */
.tools-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 중간 데스크톱 (1200px 이하: 3열) */
@media (max-width: 1200px) {
    .tools-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .popular-tool-card {
        padding: 1.75rem 1.25rem;
    }
}

/* 작은 데스크톱/태블릿 (1024px 이하: 3열 유지, 간격 조정) */
@media (max-width: 1024px) {
    .tools-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .popular-tool-card {
        padding: 1.5rem 1rem;
    }
    
    .tool-icon {
        font-size: 2.25rem;
    }
    
    .tool-title {
        font-size: 1.05rem;
    }
}

/* 태블릿 (768px 이하: 2열) */
@media (max-width: 768px) {
    /* 검색 섹션 */
    .search-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .search-btn {
        position: relative;
        width: 100%;
        justify-content: center;
    }
    
    .search-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* 카테고리 그리드 */
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    /* 메인 컨텐츠 */
    .main-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    /* 인기 도구: 2열 */
    .tools-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tools-slide {
        padding: 2rem 1rem;
    }
    
    .popular-tool-card {
        padding: 1.5rem 1rem;
    }
    
    .tool-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .tool-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-desc {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .rank-badge {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        top: 8px;
        right: 8px;
    }
    
    .popular-tool-card[data-rank="1"] .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 6px;
        right: 6px;
    }
}

/* 큰 모바일 (600px 이하: 2열 유지, 더 컴팩트) */
@media (max-width: 600px) {
    .tools-slider {
        margin: 0 var(--spacing-sm);
        border-radius: 16px;
    }
    
    .tools-slide {
        padding: 1.5rem 0.75rem;
    }
    
    .tools-row {
        gap: 0.75rem;
    }
    
    .popular-tool-card {
        padding: 1.25rem 0.75rem;
    }
    
    .tool-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .tool-desc {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .popular-tool-card[data-rank="1"] .rank-badge {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* 작은 모바일 (480px 이하: 1열) */
@media (max-width: 480px) {
    /* 인기 도구: 1열 */
    .tools-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .popular-tool-card {
        padding: 1.25rem 1rem;
        margin-bottom: 0;
    }
    
    .tool-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .tool-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-desc {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .popular-tool-card[data-rank="1"] .rank-badge {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .favorite-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .tool-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* 슬라이더 네비게이션 */
    .slider-navigation {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    /* 카테고리 카드 */
    .category-content {
        padding: var(--spacing-md);
    }
    
    .category-actions {
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
    }
    
    .category-title {
        font-size: var(--font-size-md);
    }
    
    .category-icon {
        font-size: 2.2rem;
    }
    
    /* 검색 필터 */
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* =========================
   인기 도구 슬라이더
   ========================= */

.popular-tools {
    padding: var(--spacing-3xl) 0;
    position: relative;
    background: var(--bg-primary);
}

.popular-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* 다크모드 인기 도구 섹션 배경 */
[data-theme="dark"] .popular-tools {
    background: var(--bg-secondary);
}

[data-theme="dark"] .popular-tools::before {
    background: 
        radial-gradient(ellipse 800px 600px at 20% 80%, rgba(159, 64, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 80% 20%, rgba(255, 105, 180, 0.06) 0%, transparent 60%);
}

.popular-tools-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.tools-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.tools-slide {
    display: none;
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.tools-row:last-child {
    margin-bottom: 0;
}

.popular-tool-card {
    position: relative;
    background: var(--surface-elevated);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 준비중인 카드 스타일 */
.popular-tool-card.card-soon {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.popular-tool-card.card-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    pointer-events: none;
}

.popular-tool-card.card-soon:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

/* 카테고리 페이지의 준비중 카드 */
.calculator-card.luxury-card.card-soon {
    opacity: 0.8;
    pointer-events: none;
    cursor: not-allowed;
}

.calculator-card.luxury-card.card-soon:hover {
    transform: none;
}

/* 검색 결과의 준비중 카드 */
.result-card.card-soon {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.result-card.card-soon:hover {
    transform: none;
    border-color: var(--border-primary);
}

/* 카테고리 미리보기의 준비중 도구 */
.tool-item.item-soon {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.tool-item.item-soon:hover {
    background: var(--bg-hover);
    transform: none;
}

/* 준비중인 카드 내부의 즐겨찾기 버튼은 여전히 클릭 가능 */
.popular-tool-card.card-soon .favorite-btn,
.calculator-card.luxury-card.card-soon .favorite-btn,
.result-card.card-soon .favorite-btn {
    pointer-events: auto;
}

.popular-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.popular-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

.popular-tool-card:hover::before {
    transform: scaleX(1);
}

.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.8);
    border: 3px solid white;
    z-index: 10;
    animation: rankPulse 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

@keyframes rankPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 8px 25px rgba(255, 71, 87, 0.8);
    }
}

/* 특별한 순위 스타일 */
.popular-tool-card[data-rank="1"] .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7);
    border: 4px solid #fff700;
    font-size: 1.1rem;
    width: 45px;
    height: 45px;
    top: 8px;
    right: 8px;
    animation: goldPulse 1.5s infinite;
}

.popular-tool-card[data-rank="2"] .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.7);
    border: 4px solid #e0e0e0;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
}

.popular-tool-card[data-rank="3"] .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.7);
    border: 4px solid #daa520;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
}

@keyframes goldPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(255, 215, 0, 0.9);
    }
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.tool-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 다크모드 인기도구 스타일 */
[data-theme="dark"] .popular-tool-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .popular-tool-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tool-title {
    color: var(--text-primary);
}

[data-theme="dark"] .tool-desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .tools-slider {
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .slider-info {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: var(--text-primary);
}

/* 다크모드 도구 상태 배지 */
[data-theme="dark"] .status-live {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(74, 222, 128, 0.25));
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .status-soon {
    background: rgba(120,130,140,0.18);
    color: #fff;
    border: 1px solid rgba(120,130,140,0.18);
}

/* 즐겨찾기 기능 */
.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 5;
    color: var(--text-secondary);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.favorite-btn.active {
    color: var(--kseok-orange);
    background: rgba(255, 107, 53, 0.1);
}

/* 다크모드 즐겨찾기 버튼 */
[data-theme="dark"] .favorite-btn {
    background: rgba(51, 65, 85, 0.9);
    color: var(--text-secondary);
}

[data-theme="dark"] .favorite-btn:hover {
    background: rgba(71, 85, 105, 1);
    transform: scale(1.1);
}

[data-theme="dark"] .favorite-btn.active {
    color: var(--kseok-orange);
    background: rgba(255, 107, 53, 0.2);
}

.slider-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 0 1rem;
}

.slider-dots {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gradient-primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.dot:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.slider-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--surface-elevated);
    backdrop-filter: var(--backdrop-blur);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
}

/* ============================
   About & Contact Pages Improvements
   ============================ */

/* 공통 레이아웃 개선 */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header {
    margin-bottom: 3rem;
}

/* .section-title은 main.css에서 관리됩니다 */

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About 페이지 스타일 개선 */
.about-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-section, .mission-section, .philosophy-section, .future-section {
    padding: 4rem 0;
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.highlight {
    font-weight: 600;
    color: var(--accent);
    padding: 1rem;
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.mission-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Philosophy Section */
.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent);
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-point:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(8px);
}

.point-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.point-text {
    font-weight: 500;
}

/* Timeline */
.future-timeline {
    max-width: 600px;
    margin: 2rem auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
}

.timeline-item.completed .timeline-marker {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Contact 페이지 스타일 개선 */
.contact-hero .contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-cards .info-card {
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-info-cards .info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.contact-info-cards .info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-cards h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-info-cards p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-cards small {
    color: var(--text-secondary);
}

/* 컴팩트한 문의 양식 */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.compact-form {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.compact-form .form-group {
    margin-bottom: 1.5rem;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
}

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

/* FAQ 섹션 */
.faq-section {
    padding: 4rem 0;
    background: var(--surface-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.faq-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact Tips */
.contact-tips-section {
    padding: 4rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.tip-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tip-card p {
    line-height: 1.6;
}

/* CTA 섹션 개선 */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.cta-btn.primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .compact-form {
        padding: 1.5rem;
    }
    
    .faq-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 200px;
        text-align: center;
    }
    
    /* Mission Grid 모바일 반응형 */
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-card {
        padding: 1.5rem;
    }
    
    /* Hero Features 모바일 반응형 */
    .hero-features {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .hero-features .feature-item {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .story-section,
    .mission-section,
    .philosophy-section,
    .future-section,
    .faq-section,
    .contact-tips-section {
        padding: 2rem 0;
    }
    
    .mission-card,
    .tip-card,
    .faq-item {
        padding: 1.5rem;
    }
    
    .timeline-item {
        gap: 1rem;
    }
    
    .timeline-marker {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    /* Hero Features 작은 모바일 반응형 */
    .hero-features {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }
    
    .hero-features .feature-item {
        padding: 1rem !important;
        font-size: 0.9rem;
    }
    
    .hero-features .feature-icon {
        font-size: 2.5rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* ==================== 다크모드 전용 스타일 ==================== */

/* 소개 페이지 다크모드 */
[data-theme="dark"] .about-hero {
    background: var(--bg-primary);
}

[data-theme="dark"] .hero-features .feature-item {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.9) 0%, 
        rgba(51, 65, 85, 0.9) 100%
    );
    border-color: rgba(159, 64, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-features .feature-item:hover {
    border-color: rgba(159, 64, 255, 0.4);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(159, 64, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .hero-features .feature-text h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-features .feature-text p {
    color: #cbd5e1;
}

[data-theme="dark"] .story-section,
[data-theme="dark"] .mission-section,
[data-theme="dark"] .philosophy-section {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.8) 0%, 
        rgba(30, 41, 59, 0.8) 100%
    );
}

[data-theme="dark"] .content-wrapper {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%, 
        rgba(51, 65, 85, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(159, 64, 255, 0.2);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(159, 64, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 105, 180, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .content-wrapper > * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .story-text .highlight {
    background: linear-gradient(135deg, 
        rgba(159, 64, 255, 0.2) 0%, 
        rgba(255, 105, 180, 0.2) 100%
    );
    border-left-color: var(--primary);
    color: #f1f5f9;
}

[data-theme="dark"] .mission-card {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.9) 0%, 
        rgba(51, 65, 85, 0.9) 100%
    );
    border: 1px solid rgba(159, 64, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mission-card h3 {
    color: var(--text-primary) !important;
    font-weight: 700;
}

[data-theme="dark"] .mission-card p {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

/* 문의 페이지 다크모드 */
[data-theme="dark"] .contact-hero {
    background: var(--bg-primary);
}

[data-theme="dark"] .contact-info-cards .info-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .contact-info-cards h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-info-cards p {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-form {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: var(--primary);
}

[data-theme="dark"] .faq-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .faq-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .faq-item p {
    color: var(--text-secondary);
}

[data-theme="dark"] .tip-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .tip-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .tip-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .cta-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .cta-content h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .cta-content p {
    color: var(--text-secondary);
}

/* 카테고리 페이지들 다크모드 */
[data-theme="dark"] .category-hero {
    background: var(--bg-primary);
}

[data-theme="dark"] .tools-grid .tool-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .tool-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .tool-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .tool-card .tool-features li {
    color: var(--text-secondary);
}

/* 컨텐츠 섹션 공통 다크모드 */
[data-theme="dark"] .content-section {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .content-section h2 {
    color: var(--primary);
}

[data-theme="dark"] .content-section h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .content-section p,
[data-theme="dark"] .content-section li {
    color: var(--text-secondary);
}

[data-theme="dark"] .page-title {
    color: var(--text-primary);
}

[data-theme="dark"] .main-content {
    background: var(--bg-primary);
}

/* 소개 페이지 hero-features 스타일 개선 */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.hero-features .feature-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.hero-features .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-features .feature-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-features .feature-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 라이트모드 텍스트 대비 강화 */
.hero-subtitle {
    font-size: var(--font-size-lg);
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.hero-subtitle strong {
    color: #1a202c;
    font-weight: 700;
}

.story-text p {
    color: #2d3748;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.philosophy-text p {
    color: #2d3748;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}

.philosophy-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: #1a202c;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.story-text .intro-text {
    color: #1a202c;
    font-weight: 600;
    font-size: var(--font-size-lg);
}

blockquote {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: #1a202c;
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border-left: 5px solid var(--primary);
    position: relative;
}

.point-text {
    color: #2d3748;
    font-size: var(--font-size-base);
    font-weight: 500;
}

.story-text .highlight {
    background: linear-gradient(135deg, rgba(159, 64, 255, 0.1), rgba(255, 105, 180, 0.1));
    border-left: 4px solid var(--primary);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    color: #1a202c;
    font-weight: 600;
    font-style: italic;
}

.mission-card h3 {
    color: #1a202c;
    font-weight: 700;
}

.mission-card p {
    color: #2d3748;
    font-weight: 500;
    line-height: 1.7;
}

/* 문의 페이지 라이트모드 개선 */
.contact-info-cards h3 {
    color: #1a202c;
    font-weight: 700;
}

.contact-info-cards p {
    color: #2d3748;
    font-weight: 500;
}

.faq-item h4 {
    color: #1a202c;
    font-weight: 700;
}

.faq-item p {
    color: #2d3748;
    font-weight: 500;
    line-height: 1.7;
}

/* 문의 페이지와 소개 페이지 다크모드 전체 배경 개선 */
[data-theme="dark"] .contact-form-section,
[data-theme="dark"] .faq-section,
[data-theme="dark"] .contact-tips-section,
[data-theme="dark"] .cta-section {
    background: transparent;
}

/* 다크모드에서 각 섹션 사이의 자연스러운 구분 */
[data-theme="dark"] .story-section,
[data-theme="dark"] .mission-section,
[data-theme="dark"] .philosophy-section,
[data-theme="dark"] .contact-form-section,
[data-theme="dark"] .faq-section,
[data-theme="dark"] .contact-tips-section {
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid rgba(51, 65, 85, 0.2);
    border-bottom: 1px solid rgba(51, 65, 85, 0.2);
}



/* 슬라이더 네비게이션 개선 */
.slider-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 0 1rem;
}

.slider-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--surface-elevated);
    backdrop-filter: var(--backdrop-blur);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
}





/* 다크모드 검색 결과 없음 추가 개선 */
[data-theme="dark"] .no-results {
    color: var(--text-secondary);
}

[data-theme="dark"] .no-results h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .no-results p {
    color: var(--text-secondary);
}





/* 다크모드 검색 제안 */
[data-theme="dark"] .search-suggestions p {
    color: var(--text-secondary);
}

/* 다크모드 검색 결과 카드 */
[data-theme="dark"] .result-title {
    color: var(--text-primary);
}

[data-theme="dark"] .result-desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .result-category {
    color: var(--text-muted);
    background: rgba(51, 65, 85, 0.6);
}

/* About 페이지 다크모드 텍스트 요소들 추가 */
[data-theme="dark"] .hero-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .hero-subtitle strong {
    color: var(--text-primary);
}

[data-theme="dark"] .story-text p {
    color: var(--text-secondary);
}

[data-theme="dark"] .story-text .intro-text {
    color: var(--text-primary);
}

[data-theme="dark"] .philosophy-text h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .philosophy-text p {
    color: var(--text-secondary);
}

[data-theme="dark"] blockquote {
    color: var(--text-primary);
    background: var(--bg-card);
    border-left-color: var(--primary);
}

[data-theme="dark"] .point-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .stat-number {
    color: var(--primary);
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

/* About 페이지 전용 다크모드 개선 - 매우 구체적인 선택자 사용 */
.about-hero .hero-subtitle,
.story-section .hero-subtitle,
.mission-section .section-subtitle,
.philosophy-section .section-subtitle {
    color: var(--text-secondary);
}

.about-hero .hero-subtitle strong,
.story-section .story-text .intro-text {
    color: var(--text-primary);
}

.story-section .story-text p,
.philosophy-section .philosophy-text p {
    color: var(--text-secondary);
}

.story-section .story-text .highlight,
.philosophy-section blockquote {
    color: var(--text-primary);
}

.philosophy-section .feature-point .point-text {
    color: var(--text-secondary);
}

/* ===== LUXURY CATEGORY PAGES ===== */
/* Inspired by Premium Rental Design */

.luxury-hero {
    background: linear-gradient(135deg, 
        #f9fafb 0%,
        #f3f4f6 25%,
        #e5e7eb 50%,
        #d1d5db 75%,
        #9ca3af 100%
    );
    position: relative;
    padding: 120px 0 100px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.luxury-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(107, 114, 128, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(156, 163, 175, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.luxury-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, transparent 30%, rgba(107, 114, 128, 0.05) 50%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

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

.breadcrumb-luxury {
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.breadcrumb-luxury a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-luxury a:hover {
    color: var(--text-primary);
}

.breadcrumb-luxury .separator {
    margin: 0 10px;
    opacity: 0.6;
    color: var(--text-secondary);
}

.breadcrumb-luxury .current {
    color: var(--text-primary);
    font-weight: 500;
}

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

.luxury-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.luxury-subtitle {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    opacity: 0.9;
    margin-top: 15px;
    letter-spacing: 0.05em;
}

.luxury-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-actions-luxury {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-luxury {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-luxury.primary {
    background: rgba(30, 41, 59, 0.9);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-luxury.primary:hover {
    background: rgba(30, 41, 59, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

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

.btn-luxury.secondary:hover {
    background: var(--bg-card);
    border-color: #6b7280;
    transform: translateY(-2px);
}

/* Filter Section */
.filter-section-luxury {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-controls-luxury {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 30px;
    align-items: end;
}

.filter-group-luxury h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-buttons-luxury {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn-luxury {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.filter-btn-luxury:hover,
.filter-btn-luxury.active {
    background: #374151;
    color: white;
    border-color: #374151;
}

.search-luxury {
    display: flex;
    position: relative;
}

.search-luxury input {
    flex: 1;
    padding: 12px 50px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-luxury input:focus {
    border-color: #6b7280;
}

.search-btn-luxury {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Calculator Collection */
.calculators-collection {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-header-luxury {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-luxury h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-header-luxury p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

/* Luxury Calculator Cards */
.calculator-card.luxury-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    backdrop-filter: var(--backdrop-blur);
}

.calculator-card.luxury-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #6b7280;
}

.card-image-container {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, 
        #6b7280, 
        #9ca3af
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-icon-large {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.calculator-card:hover .calculator-icon-large {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    z-index: 10;
}

.status-badge.live {
    background: #059669;
    color: white;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.status-badge.live:hover {
    background: #047857;
    transform: scale(1.02);
}

.status-badge.soon {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.25);
    backdrop-filter: blur(8px);
}

.status-badge.soon:hover {
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.4);
}

.rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #1a1a1a;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa760);
    color: white;
}

.rank-badge.new {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    font-size: 0.65rem;
}

.card-content-luxury {
    padding: 28px 24px 24px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    transition: background-color 0.3s ease;
}

.card-header-luxury {
    margin-bottom: 15px;
}

.calculator-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.calculator-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.calculator-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.spec-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.spec-label {
    color: var(--text-secondary);
    min-width: 40px;
}

.spec-value {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-calculator-use {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-lg);
    background: #374151;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-calculator-use:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-calculator-use.disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-calculator-use.disabled:hover {
    background: #d1d5db;
    transform: none;
    box-shadow: none;
}

/* Excellence Stats */
.excellence-stats-luxury {
    background: #374151;
    color: white;
    padding: 80px 0;
}

.stats-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item-luxury {
    padding: 30px 20px;
}

.stat-number-luxury {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item-luxury h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.95;
}

.stat-item-luxury p {
    opacity: 0.8;
    line-height: 1.5;
}

/* Related Categories */
.related-luxury {
    padding: 80px 0;
    background: white;
}

.related-luxury h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.related-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card-luxury {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.related-card-luxury:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #6b7280;
}

.related-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: #6b7280;
    transition: color 0.3s ease;
}

.related-card-luxury:hover .related-icon {
    color: #374151;
}

.related-card-luxury h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.related-card-luxury p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tool Cards - Universal styles for all categories */
.tool-card.luxury-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tool-card.luxury-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-icon-large {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tool-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-tool-use {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #374151;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-tool-use:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-tool-use.disabled {
    background: var(--text-light);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

/* Dark Theme Support */
[data-theme="dark"] .luxury-hero {
    background: linear-gradient(135deg, 
        #111827 0%,
        #1f2937 25%,
        #374151 50%,
        #4b5563 75%,
        #6b7280 100%
    );
    color: var(--text-primary);
}

[data-theme="dark"] .luxury-hero::before {
    background: radial-gradient(ellipse at top left, rgba(75, 85, 99, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(107, 114, 128, 0.2) 0%, transparent 50%);
}

[data-theme="dark"] .luxury-hero::after {
    background: linear-gradient(45deg, transparent 30%, rgba(75, 85, 99, 0.1) 50%, transparent 70%);
}

[data-theme="dark"] .filter-section-luxury {
    background: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .calculators-collection {
    background: var(--bg-primary);
}

[data-theme="dark"] .calculator-card.luxury-card,
[data-theme="dark"] .tool-card.luxury-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-luxury input {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .filter-btn-luxury {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .related-luxury {
    background: var(--bg-primary);
}

[data-theme="dark"] .related-card-luxury {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .related-icon {
    color: #9ca3af;
}

[data-theme="dark"] .related-card-luxury:hover .related-icon {
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-controls-luxury {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-specs,
    .tool-specs {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-luxury {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-actions-luxury {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-luxury {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .card-image-container {
        height: 150px;
    }
    
    .calculator-icon-large,
    .tool-icon-large {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .luxury-title {
        font-size: 2rem;
    }
    
    .luxury-subtitle {
        font-size: 1.1rem;
    }
    
    .luxury-description {
        font-size: 1rem;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-content-luxury {
        padding: 20px;
    }
    
    .section-header-luxury h2 {
        font-size: 2rem;
    }
}/* ===== 개선된 카드 디자인 ===== */


/* ===== FEATURED TOOL SECTION ===== */
.featured-tool-section {
    background: linear-gradient(135deg, var(--kseok-primary), var(--kseok-secondary));
    padding: 60px 0;
    margin-top: -1px;
}

.featured-tool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.featured-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: white;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 30px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 0 0 15px 15px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.featured-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
}

.featured-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--kseok-primary), var(--kseok-secondary));
    border-radius: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.featured-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.featured-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.featured-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.featured-stats .stat {
    font-size: 0.9rem;
    background: var(--bg-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.featured-action {
    text-align: right;
}

.status-live {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.btn-featured {
    background: #374151;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-featured:hover {
    background: #4b5563;
    transform: translateX(5px);
}

/* ===== ADVANCED FILTER ENHANCEMENTS ===== */
/* Simplified Filter Controls */
.simple-filter-controls {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: end;
    margin-bottom: 25px;
}

.sort-btn-luxury {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.sort-btn-luxury.active,
.sort-btn-luxury:active,
.sort-btn-luxury:focus {
    background: #374151;
    color: #fff;
    border-color: #374151;
    box-shadow: 0 2px 8px rgba(30,41,59,0.08);
    font-weight: 700;
    letter-spacing: 0.01em;
    outline: none;
    z-index: 1;
}

[data-theme="light"] .sort-btn-luxury.active,
[data-theme="light"] .sort-btn-luxury:active,
[data-theme="light"] .sort-btn-luxury:focus {
    background: #374151;
    color: #fff;
    border-color: #374151;
    font-weight: 700;
    outline: none;
}

.sort-btn-luxury:hover {
    background: #4b5563;
    color: #fff;
    border-color: #4b5563;
}


[data-theme="dark"] .sort-btn-luxury.active,
[data-theme="dark"] .sort-btn-luxury:hover {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.search-results-count {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quick Filters 제거됨 - 간소화된 디자인 */

/* ===== ENHANCED CALCULATOR CARDS ===== */
.calculator-card.luxury-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.calculator-card.luxury-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.favorite-btn.favorited .favorite-icon {
    color: #ffd700;
}

.card-content-luxury {
    padding: 25px;
    position: relative;
}

.calculator-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.spec-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.spec-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== TIPS & INSIGHTS SECTION ===== */
.tips-insights-luxury {
    background: var(--bg-secondary);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.tips-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tip-item-luxury {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tip-item-luxury:hover {
    border-color: #6b7280;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #6b7280;
    transition: all 0.3s ease;
}

.tip-item-luxury h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tip-item-luxury p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== LOAD MORE SECTION ===== */
.load-more-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn-load-more {
    background: var(--bg-secondary);
    border: 2px solid var(--kseok-primary);
    color: var(--kseok-primary);
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--kseok-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from, to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideInRight {
    from, to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pulse {
    from, to {
        opacity: 1;
        transform: none;
    }
}

.featured-tool-card:hover .featured-icon {
    animation: pulse 2s infinite;
}

/* ===== PERFECT DARK THEME SUPPORT ===== */
[data-theme="dark"] .featured-tool-card {
    background: rgba(40, 44, 52, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .featured-tool-card:hover {
    background: var(--bg-card);
}

[data-theme="dark"] .featured-stats .stat {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .sort-btn-luxury,
[data-theme="dark"] .filter-btn-luxury {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Quick Filter 다크테마 제거됨 */

[data-theme="dark"] .spec-item {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .tip-item-luxury {
    background: var(--bg-card);
    border-color: transparent;
}

[data-theme="dark"] .tip-item-luxury:hover {
    border-color: #6b7280;
}

[data-theme="dark"] .favorite-btn {
    background: rgba(40, 44, 52, 0.9);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .favorite-btn:hover {
    background: var(--bg-card);
}

[data-theme="dark"] .btn-load-more {
    background: var(--bg-card);
    border-color: var(--kseok-primary);
    color: var(--kseok-primary);
}

[data-theme="dark"] .search-results-count {
    color: var(--text-secondary);
}

[data-theme="dark"] .tip-icon {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #9ca3af;
}

[data-theme="dark"] .btn-luxury.primary {
    background: var(--kseok-primary);
    color: white;
}

[data-theme="dark"] .btn-luxury.primary:hover {
    background: var(--kseok-primary-dark);
}

[data-theme="dark"] .btn-luxury.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-luxury.secondary:hover {
    background: var(--bg-primary);
    border-color: var(--kseok-primary);
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .filter-controls-luxury {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .search-luxury {
        grid-column: 1 / -1;
    }
    
    .featured-content {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    
    .featured-action {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .filter-controls-luxury {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .featured-icon {
        width: 60px;
        height: 60px;
        font-size: 3rem;
        margin: 0 auto;
    }
    
    .featured-stats {
        justify-content: center;
    }
    
    /* Quick Filters 관련 반응형 CSS 제거됨 */
    
    .tips-grid-luxury {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-specs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .spec-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .featured-tool-card {
        padding: 20px;
        margin: 0 10px;
    }
    
    .featured-badge {
        right: 20px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .featured-info h3 {
        font-size: 1.4rem;
    }
    
    .featured-stats .stat {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .tip-item-luxury {
        padding: 20px;
    }
    
    .tip-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .filter-buttons-luxury {
        gap: 5px;
    }
    
    .filter-btn-luxury,
    .sort-btn-luxury {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ===== HIGH CONTRAST ACCESSIBILITY ===== */
@media (prefers-contrast: high) {
    .calculator-card.luxury-card {
        border: 2px solid var(--text-primary);
    }
    
    .featured-tool-card {
        border: 2px solid var(--text-primary);
    }
    
    .btn-calculator-use,
    .btn-featured,
    .btn-luxury {
        border: 2px solid currentColor;
    }
    
    .status-badge,
    .rank-badge {
        border: 2px solid white;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    .calculator-card.luxury-card,
    .featured-tool-card,
    .tip-item-luxury,
    .quick-filter-tag,
    .btn-luxury,
    .btn-featured,
    .btn-calculator-use {
        transition: none;
    }
    
    .calculator-card.luxury-card:hover {
        transform: none;
    }
    
    .featured-tool-card:hover .featured-icon {
        animation: none;
    }
    /* 잘못된 @keyframes 선언 완전히 삭제 */
}
/* ===== SMOOTH RELATED SLIDER ===== */
.related-slider-container {
    overflow: hidden;
    margin: 0 -20px;
    padding: 20px 0;
}

.related-slider {
    display: flex;
    gap: 20px;
    animation: none; /* JavaScript가 제어 */
    will-change: transform;
}

.related-card-slider {
    flex: 0 0 300px;
    min-width: 300px;
}

.related-card-link {
    display: block;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.related-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--kseok-primary);
    text-decoration: none !important;
}

.related-card-slider .related-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    color: #6b7280;
    transition: all 0.3s ease;
}

.related-card-slider h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.related-card-slider p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Dark Theme Support for Slider */
[data-theme="dark"] .related-card-link {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .related-card-link:hover {
    border-color: #6b7280;
}

[data-theme="dark"] .related-card-slider .related-icon {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #9ca3af;
}

/* Responsive Slider */
@media (max-width: 1024px) {
    .simple-filter-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-luxury {
        order: -1;
    }
    
    .related-card-slider {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .related-slider-container {
        margin: 0 -10px;
    }
    
    .related-card-slider {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .related-card-link {
        padding: 20px;
    }
    
    .related-card-slider .related-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .related-card-slider {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .related-card-link {
        padding: 15px;
    }
    
    .related-card-slider h3 {
        font-size: 1.1rem;
    }
    
    .related-card-slider p {
        font-size: 0.9rem;
    }
}

/* Performance Optimizations */
.related-slider {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.related-card-link {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth Animation Control */
@media (prefers-reduced-motion: reduce) {
    .related-slider {
        animation: none !important;
    }
    
    .related-card-link {
        transition: none;
    }
    
    .related-card-link:hover {
        transform: none;
    }
}

/* ===== DARK MODE CALCULATOR CARD STYLES ===== */
[data-theme="dark"] .calculator-card.luxury-card {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
}

[data-theme="dark"] .calculator-card.luxury-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card-content-luxury {
    background: var(--bg-secondary);
}

[data-theme="dark"] .calculator-specs {
    background: var(--bg-tertiary);
    border-color: var(--border-tertiary);
}

[data-theme="dark"] .status-badge.live {
    background: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .status-badge.soon {
    background: rgba(75, 85, 99, 0.2);
    border-color: rgba(75, 85, 99, 0.4);
    color: var(--text-tertiary);
}

[data-theme="dark"] .btn-calculator-use {
    background: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-calculator-use:hover {
    background: #6b7280;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .btn-calculator-use.disabled {
    background: #374151;
    color: #6b7280;
}

/* Dark Mode Rank Badges */
[data-theme="dark"] .rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
}

[data-theme="dark"] .rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #1a1a1a;
}

[data-theme="dark"] .rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa760);
    color: #1a1a1a;
}

/* =============================================
   카테고리 페이지 전용 보라색 제거 스타일
   ============================================= */

/* 카테고리 페이지 CSS 변수 강제 회색 변경 */
.categories-page {
    --kseok-primary: #374151 !important;
    --kseok-secondary: #6b7280 !important;
    --kseok-primary-dark: #4b5563 !important;
}

[data-theme="dark"] .categories-page {
    --kseok-primary: #6b7280 !important;
    --kseok-secondary: #9ca3af !important;
    --kseok-primary-dark: #9ca3af !important;
}

/* 카테고리 페이지 luxury-hero 배경 강제 회색 변경 */
.categories-page .luxury-hero {
    background: linear-gradient(135deg, 
        #f9fafb 0%,
        #f3f4f6 25%,
        #e5e7eb 50%,
        #d1d5db 75%,
        #9ca3af 100%
    ) !important;
}

.categories-page .luxury-hero::before {
    background: radial-gradient(ellipse at top left, rgba(107, 114, 128, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(156, 163, 175, 0.2) 0%, transparent 50%) !important;
}

.categories-page .luxury-hero::after {
    background: linear-gradient(45deg, transparent 30%, rgba(107, 114, 128, 0.1) 50%, transparent 70%) !important;
}

[data-theme="dark"] .categories-page .luxury-hero {
    background: linear-gradient(135deg, 
        #111827 0%,
        #1f2937 25%,
        #374151 50%,
        #4b5563 75%,
        #6b7280 100%
    ) !important;
}

[data-theme="dark"] .categories-page .luxury-hero::before {
    background: radial-gradient(ellipse at top left, rgba(75, 85, 99, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(107, 114, 128, 0.2) 0%, transparent 50%) !important;
}

[data-theme="dark"] .categories-page .luxury-hero::after {
    background: linear-gradient(45deg, transparent 30%, rgba(75, 85, 99, 0.1) 50%, transparent 70%) !important;
}

/* 카테고리 페이지 모든 버튼 강제 회색 변경 */
.categories-page .btn-luxury.primary {
    background: #374151 !important;
    color: white !important;
}

.categories-page .btn-luxury.primary:hover {
    background: #4b5563 !important;
}

[data-theme="dark"] .categories-page .btn-luxury.primary {
    background: #6b7280 !important;
}

[data-theme="dark"] .categories-page .btn-luxury.primary:hover {
    background: #9ca3af !important;
}

/* 카테고리 페이지 관련 카드 호버 강제 회색 변경 */
.categories-page .related-card-link:hover {
    border-color: #6b7280 !important;
}

[data-theme="dark"] .categories-page .related-card-link:hover {
    border-color: #9ca3af !important;
}