/* 전국 병의원·약국 정보 - Custom Styles */

:root {
    --primary: #0d6efd;
    --primary-dark: #0856c7;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    --shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.7;
}

/* Navbar */
.navbar-brand {
    font-size: 1.3rem;
}

.navbar .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0856c7 50%, #043a8c 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat center;
    background-size: contain;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .form-control {
    height: 52px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px 0 0 10px;
    padding-left: 20px;
}

.hero-search .btn {
    height: 52px;
    padding: 0 25px;
    border-radius: 0 10px 10px 0;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-hospital, .card-pharmacy {
    border-left: 4px solid;
}

.card-hospital { border-left-color: var(--primary); }
.card-pharmacy { border-left-color: var(--success); }

.card .card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.card .card-title a:hover {
    color: var(--primary);
}

/* Type Badge */
.badge-type {
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
}

/* Open Status Badge */
.badge-status {
    font-size: 0.7rem;
    padding: 0.25em 0.55em;
    border-radius: 6px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Stats Section */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Detail Page */
.detail-header {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.detail-info-table th {
    width: 140px;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.9rem;
    vertical-align: middle;
}

.detail-info-table td {
    font-size: 0.95rem;
}

.hours-table th {
    width: 80px;
    text-align: center;
    font-size: 0.85rem;
}

.hours-table td {
    text-align: center;
    font-size: 0.85rem;
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 300px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Region Cards */
.region-card {
    border-radius: 10px;
    text-align: center;
    padding: 1.2rem;
    background: var(--bg-light);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

.region-card:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Search Results */
.search-result-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Quick Links */
.quick-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    background: var(--bg-light);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.quick-link:hover {
    background: #e8f0fe;
    color: var(--primary);
}

.quick-link i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    color: var(--primary);
}

/* Footer */
.footer-section {
    background: #1e2a3a;
    color: #fff;
}

.footer-text {
    color: #b0bec5;
    line-height: 1.7;
}

.footer-link {
    color: #b0bec5;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.footer-badge {
    transition: background 0.2s;
}

.footer-badge:hover {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

/* Admin styles */
.admin-sidebar {
    background: #1a1d21;
    min-height: 100vh;
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.7);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    margin: 2px 8px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .detail-info-table th {
        width: 100px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .card {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-search .form-control {
        height: 44px;
        font-size: 0.95rem;
    }

    .hero-search .btn {
        height: 44px;
        padding: 0 15px;
    }
}

/* Loading */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
