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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #262626;
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* 메인 컨테이너 */
.main-container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 왼쪽 사이드바 */
.sidebar {
    width: 350px;
    background: linear-gradient(180deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.toggle-theme {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#themeToggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 프로필 섹션 */
.profile-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bio {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.tech-stack {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 25px;
}

/* 통계 */
.stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
}

.count {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.label {
    font-size: 12px;
    opacity: 0.8;
}

/* 네비게이션 */
.navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.nav-item i {
    font-size: 18px;
    margin-right: 15px;
    width: 20px;
}

.nav-item span {
    font-weight: 500;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: #fafafa;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

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

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 24px;
    color: #262626;
    font-weight: 600;
}

/* GitHub 헤더와 카운트 */
.header-with-count {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.repo-count-badge {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
    min-width: 60px;
    text-align: center;
}

/* 페이징 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    color: #4A90E2;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
    border-color: #e1e8ed;
}

.pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.page-info {
    display: flex;
    align-items: center;
    background: rgba(74, 144, 226, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    color: #4A90E2;
    font-weight: 600;
    min-width: 100px;
    justify-content: center;
}

/* 홈 대시보드 스타일 */
.home-section {
    margin-bottom: 50px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.section-header h3 {
    font-size: 20px;
    color: #262626;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: #4A90E2;
    font-size: 18px;
}

.view-more {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #4A90E2;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-more:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

/* 컴팩트 포스트 그리드 */
.posts-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    /* max-height 제거하여 스크롤 없이 모든 내용 표시 */
}

/* 포트폴리오 프리뷰 */
.portfolio-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-card.compact {
    padding: 20px;
    margin: 0;
}

.portfolio-card.compact .card-image img {
    height: 140px;
}

.portfolio-card.compact h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #262626;
    font-weight: 600;
}

.portfolio-card.compact p {
    font-size: 14px;
    margin-bottom: 12px;
}

.portfolio-card.compact .tech-tags {
    margin-bottom: 0;
}

/* GitHub 프리뷰 */
.github-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.repo-card.compact {
    padding: 15px;
    margin: 0;
}

.repo-card.compact .repo-name {
    font-size: 16px;
}

.repo-card.compact .repo-description {
    font-size: 13px;
    margin-bottom: 10px;
}

/* 갤러리 프리뷰 */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.gallery-item.compact {
    height: 180px;
    border-radius: 12px;
}

.gallery-item.compact img {
    height: 100%;
    border-radius: 12px;
}

.gallery-item.compact .gallery-overlay {
    padding: 15px;
}

.gallery-item.compact .gallery-overlay p {
    font-size: 13px;
    margin-bottom: 5px;
}

.gallery-item.compact .category-tag {
    font-size: 10px;
    padding: 3px 8px;
}

/* 컴팩트 페이징 */
.pagination.compact {
    margin-top: 20px;
    padding: 15px;
}

.pagination-btn.small {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 60px;
}

.page-info.small {
    padding: 8px 15px;
    font-size: 13px;
    min-width: 70px;
}

.post-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.post-header h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.post-header span {
    font-size: 12px;
    color: #8e8e8e;
}

.post-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.code-preview {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: #4A90E2;
    border-left: 4px solid #4A90E2;
}

/* 검색 */
.search-container {
    max-width: 600px;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e8e;
    z-index: 1;
}

.search-box input {
    flex: 1;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-box button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.search-results {
    color: #8e8e8e;
    padding: 20px;
}

/* GitHub 레포 그리드 */
.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.repo-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2, #357ABD);
}

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

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.repo-name {
    font-size: 18px;
    font-weight: 600;
    color: #4A90E2;
    text-decoration: none;
    margin-bottom: 5px;
    display: block;
}

.repo-name:hover {
    color: #357ABD;
}

.repo-visibility {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.repo-description {
    color: #586069;
    margin-bottom: 15px;
    line-height: 1.5;
}

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

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

.language-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.repo-updated {
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 10px;
}

/* 로딩 애니메이션 */
.loading {
    text-align: center;
    padding: 40px;
    color: #8e8e8e;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

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

/* 포트폴리오 그리드 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #357ABD);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.05);
}

.tech-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 15px;
    color: white;
}

.portfolio-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #262626;
    font-weight: 600;
}

.portfolio-card p {
    color: #8e8e8e;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tags span {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.portfolio-card a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #4A90E2;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-card a:hover {
    color: #357ABD;
    transform: translateX(5px);
}

.portfolio-card a i {
    margin-right: 8px;
}

/* 갤러리 그리드 */
.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    color: #4A90E2;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-btn:hover {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.category-tag {
    display: inline-block;
    background: rgba(74, 144, 226, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-card:nth-child(1) { animation-delay: 0.1s; }
.animate-card:nth-child(2) { animation-delay: 0.2s; }
.animate-card:nth-child(3) { animation-delay: 0.3s; }

/* 다크모드 */
.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-mode .main-container {
    background: rgba(45, 45, 45, 0.95);
    color: #e1e8ed;
}

.dark-mode .main-content {
    background: #1a1a1a;
}

.dark-mode .portfolio-card,
.dark-mode .post-card,
.dark-mode .repo-card {
    background: #2c2c2c;
    border-color: #404040;
    color: #e1e8ed;
}

.dark-mode .content-header h2 {
    color: #e1e8ed;
}

.dark-mode .search-box input {
    background: #2c2c2c;
    border-color: #404040;
    color: #e1e8ed;
}

.dark-mode .code-preview {
    background: #1e1e1e;
    border-left-color: #4A90E2;
}

.dark-mode .repo-name {
    color: #66b2ff;
}

.dark-mode .repo-name:hover {
    color: #4A90E2;
}

.dark-mode .loading {
    color: #8e8e8e;
}

.dark-mode .repo-count-badge {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.dark-mode .pagination-btn {
    background: #2c2c2c;
    border-color: #404040;
    color: #66b2ff;
}

.dark-mode .pagination-btn:hover:not(:disabled) {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.dark-mode .pagination-btn:disabled {
    background: #1a1a1a;
    color: #666;
    border-color: #404040;
}

.dark-mode .page-info {
    background: rgba(102, 178, 255, 0.1);
    color: #66b2ff;
}

.dark-mode .category-btn {
    background: #2c2c2c;
    border-color: #404040;
    color: #66b2ff;
}

.dark-mode .category-btn:hover {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.dark-mode .category-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* 다크모드 홈 섹션 */
.dark-mode .home-section {
    background: #2c2c2c;
    border-color: #404040;
}

.dark-mode .section-header {
    border-bottom-color: #404040;
}

.dark-mode .section-header h3 {
    color: #e1e8ed;
}

.dark-mode .view-more {
    color: #66b2ff;
    border-color: #66b2ff;
}

.dark-mode .view-more:hover {
    background: #66b2ff;
    color: #2c2c2c;
}

.dark-mode .portfolio-card.compact h4 {
    color: #e1e8ed;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        margin: 10px;
        border-radius: 15px;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .navigation {
        flex-direction: row;
        justify-content: space-around;
        margin-top: 20px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .posts-grid.compact {
        grid-template-columns: 1fr;
    }
    
    .portfolio-preview {
        grid-template-columns: 1fr;
    }
    
    .github-preview {
        grid-template-columns: 1fr;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 푸터 스타일 */
.site-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-links a:hover {
    color: #3498db;
}

.tech-stack-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

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

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

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    font-size: 12px;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a, .footer-links button {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.footer-links a:hover, .footer-links button:hover {
    color: #3498db;
}

#installPWA {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
}

/* 검색 고급 기능 스타일 */
.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h2 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.search-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.search-controls {
    margin-bottom: 30px;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    color: #2c3e50;
}

.search-stats {
    background: #e8f4fd;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2980b9;
    border-left: 4px solid #3498db;
}

.search-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.search-placeholder i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.search-placeholder h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 로딩 애니메이션 개선 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.loading i {
    font-size: 32px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

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

/* 스크롤 애니메이션 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 호버 효과 개선 */
.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* 터치 디바이스 최적화 */
@media (hover: none) {
    .portfolio-card:hover,
    .repo-card:hover,
    .gallery-item:hover {
        transform: none;
    }
}

/* PWA 스타일 */
@media (display-mode: standalone) {
    .main-container {
        margin-top: 0;
        border-radius: 0;
    }
}
