/* SumNews Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--dark-color) !important;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.brand-text {
    background: linear-gradient(45deg, #007bff, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #6c757d !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Navbar Toggler 개선 */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Navbar Collapse 패딩 개선 */
.navbar-collapse {
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .navbar-collapse {
        margin-top: 0;
    }
}

/* Footer Styles */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.footer-brand {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.footer-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.footer-links button {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links button:hover {
    color: var(--primary-color) !important;
}

/* Main Content */
main {
    flex: 1;
}

.container {
    max-width: 1140px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* 모바일에서 네비게이션 아이템 간격 조정 */
    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
    
    .footer .row {
        text-align: center !important;
    }
    
    .footer .text-md-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
}

/* 네비게이션 버튼 정렬 개선 - 데스크톱에서만 */
@media (min-width: 992px) {
    .navbar-nav .nav-item .btn {
        margin-left: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
