/* 원불교역사박물관 유물목록시스템 스타일 */

/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 컨테이너 스타일 수정 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 메인 컨텐츠 */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 20px 0;
}

/* 헤더 스타일 */
.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 0.8rem 0; /* 패딩 줄임 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* wrap 제거 */
    gap: 1rem;
}

.logo h1 {
    font-size: 1.4rem; /* 폰트 크기 줄임 */
    margin-bottom: 0.1rem;
}

.logo p {
    font-size: 0.8rem; /* 폰트 크기 줄임 */
    opacity: 0.9;
}

.logo i {
    color: #f39c12;
    margin-right: 0.3rem;
}

/* 네비게이션 메뉴 */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0.2rem; /* 간격 줄임 */
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 0.8rem; /* 패딩 줄임 */
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem; /* 폰트 크기 줄임 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* 로그인 영역 */
.login-area {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* 간격 줄임 */
    flex-shrink: 0; /* 영역 축소 방지 */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem; /* 폰트 크기 줄임 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

/* 버튼 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-login {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.btn-login:hover {
    background-color: rgba(255,255,255,0.3);
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
}

.btn-logout:hover {
    background-color: #c0392b;
}

/* 환영 섹션 */
.welcome-section {
    background: white;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-content p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 대시보드 */
.dashboard {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: #3498db;
}

.stat-content h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 빠른 작업 섹션 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.quick-action-btn:hover::before {
    transform: translateX(0);
}

.quick-action-btn:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    background: linear-gradient(135deg, #ffffff, #ecf9ff);
}

.quick-action-btn i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #3498db;
    transition: all 0.3s ease;
}

.quick-action-btn span {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* 개별 버튼 색상 테마 */
.quick-action-btn[href*="register"] i {
    color: #3498db;
}

.quick-action-btn[href*="register"]:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.quick-action-btn[href*="category"] i {
    color: #f39c12;
}

.quick-action-btn[href*="category"]:hover {
    border-color: #f39c12;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

.quick-action-btn[href*="user"] i {
    color: #9b59b6;
}

.quick-action-btn[href*="user"]:hover {
    border-color: #9b59b6;
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
}

.quick-action-btn[href*="export"] i {
    color: #2ecc71;
}

.quick-action-btn[href*="export"]:hover {
    border-color: #2ecc71;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2);
}

.quick-action-btn[href*="system"] i {
    color: #e74c3c;
}

.quick-action-btn[href*="system"]:hover {
    border-color: #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}

.quick-actions h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.action-card:hover {
    background: #e9ecef;
    border-color: #3498db;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 2rem;
    color: #3498db;
    min-width: 60px;
}

.action-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.action-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 최근 등록 유물 섹션 */
.recent-artifacts {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recent-artifacts h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* 테이블 스타일 */
.artifacts-table-container {
    overflow-x: auto;
}

.artifacts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.artifacts-table th,
.artifacts-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.artifacts-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.artifacts-table tbody tr:hover {
    background-color: #f8f9fa;
}

.loading {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* 로그인 프롬프트 */
.login-prompt {
    background: white;
    padding: 4rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-prompt-content i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.login-prompt-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.login-prompt-content p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* 푸터 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info h4 {
    margin-bottom: 0.5rem;
}

.footer-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright p {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modal-body {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 게시판 최신글 섹션 스타일 */
.recent-posts {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: #3498db;
}

.more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.more-link:hover {
    color: #2980b9;
    gap: 0.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.post-card.notice-post {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #fff8f8, #ffffff);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-category {
    flex: 1;
}

.notice-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.category-badge {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.post-title {
    margin-bottom: 0.8rem;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    display: block;
}

.post-title a:hover {
    color: #3498db;
}

.comment-count {
    color: #e74c3c;
    font-weight: 500;
    margin-left: 0.3rem;
}

.post-excerpt {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.post-author {
    color: #95a5a6;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.no-posts-icon {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.no-posts p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* 반응형 디자인 - 미디어 쿼리 정리 */
@media (max-width: 1240px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav-menu ul {
        gap: 0.1rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 빠른 작업 버튼 반응형 */
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 15px;
    }
    
    .quick-action-btn {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .quick-action-btn i {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .quick-action-btn span {
        font-size: 0.85rem;
    }
    
    /* 게시판 최신글 반응형 */
    .recent-posts {
        padding: 1.5rem 1rem;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-meta {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 2rem 1rem;
    }
    
    /* 빠른 작업 버튼 모바일 최적화 */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    
    .quick-action-btn {
        padding: 15px 10px;
        min-height: 90px;
    }
    
    .quick-action-btn i {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .quick-action-btn span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .recent-artifacts {
        padding: 1rem;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-meta {
        justify-content: space-between;
        width: 100%;
    }
}

