@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --primary: #4b5ae4;
    --primary-hover: #3b4cd4;
    --secondary: #8b5cf6;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --card-shadow: 0 10px 15px -3px rgba(75, 90, 228, 0.1), 0 4px 6px -2px rgba(75, 90, 228, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
    color: var(--dark);
    min-height: 100vh;
    padding-bottom: 3rem;
}

.container {
    max-width: 1000px;
}

/* 헤더 스타일 */
header {
    text-align: center;
    padding: 3rem 0;
}

header h1 {
    font-weight: 700;
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .lead {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

header .text-muted {
    color: var(--gray) !important;
}

/* 카드 스타일 */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
}

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

.card-body {
    padding: 2rem;
}

.card-header {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-bottom: none;
}

/* 폼 스타일 */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-control {
    border-radius: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.input-group-text {
    background-color: #EEF2FF;
    border: 1px solid #E5E7EB;
    color: var(--primary);
    border-radius: 0.7rem 0 0 0.7rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.form-text {
    color: var(--gray);
    margin-top: 0.5rem;
}

/* 버튼 스타일 */
.btn {
    border-radius: 0.7rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 알림 스타일 */
.alert {
    border-radius: 0.7rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* 최근 URL 목록 */
.recent-urls-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.list-group {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.list-group-item {
    padding: 1.25rem 1.5rem;
    border-left: none;
    border-right: none;
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: #F3F4F6;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.list-group-item a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* 부가 정보 표시 */
.url-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.url-original {
    font-size: 0.85rem;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}

.url-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* 푸터 스타일 */
footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--gray);
}

footer p {
    margin-bottom: 0.5rem;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.25rem;
    }
    
    header .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .url-detail {
        flex-direction: column;
    }
}

/* URL 통계 스타일 */
.stats-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stats-item {
    padding: 1rem;
    transition: var(--transition);
    border-radius: 0.7rem;
    background-color: #F3F4F6;
}

.stats-item:hover {
    background-color: #E5E7EB;
    transform: translateY(-2px);
}

.stats-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.stats-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin: 0.5rem 0;
}

.stats-label {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9rem;
}

/* 개발자의 다른 사이트 스타일 */
.other-sites-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.site-card-link {
    text-decoration: none;
    display: block;
}

.site-card {
    display: flex;
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.site-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    width: 90px;
    font-size: 2rem;
    padding: 1.5rem 0;
}

.site-card-content {
    padding: 1.5rem;
    flex: 1;
}

.site-card-content h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.site-card-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.site-card-visit {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
    transition: var(--transition);
}

.site-card:hover .site-card-visit {
    color: var(--primary-hover);
    padding-left: 0.25rem;
}

@media (max-width: 768px) {
    .site-card-icon {
        width: 70px;
        font-size: 1.5rem;
    }
    
    .site-card-content {
        padding: 1rem;
    }
}

/* 책 카드 스타일 */
.book-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.book-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.book-image {
    position: relative;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.book-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.book-info p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.book-visit {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
    transition: var(--transition);
    margin-top: auto;
}

.book-card:hover .book-visit {
    color: var(--primary-hover);
    padding-left: 0.25rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-info h4 {
        font-size: 1.1rem;
    }
} 