/* ============================================================
   24site - 공통 스타일시트
   디자인: 연녹색(#4CAF50) + 주황(#FF6B35) 강조색
   모바일 최우선, 카드형 UI
   ============================================================ */

:root {
    --primary:       #4CAF50;
    --primary-dark:  #388E3C;
    --primary-light: #E8F5E9;
    --accent:        #FF6B35;
    --accent-dark:   #E64A19;
    --text-dark:     #1a1a2e;
    --text-muted:    #6c757d;
    --bg-light:      #f8fffe;
    --border-color:  #e8f5e9;
    --card-shadow:   0 2px 12px rgba(76,175,80,0.12);
    --card-shadow-hover: 0 8px 32px rgba(76,175,80,0.22);
    --radius:        14px;
    --radius-sm:     8px;
}

/* ── 전역 ── */
* { box-sizing: border-box; }
body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

/* ── Bootstrap Primary 재정의 ── */
.btn-primary, .bg-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-primary:hover { background-color: var(--primary-dark) !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.badge.bg-primary { background-color: var(--primary) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background-color: var(--primary) !important; color: #fff !important; }

/* ── 로고 ── */
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}
.logo-text { font-size: 1.3rem; color: var(--text-dark); }
.logo-text strong { color: var(--primary); }

/* ── 네비게이션 ── */
.navbar { padding: 0.6rem 0; }
.nav-link {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary) !important; }

/* ── HERO 섹션 ── */
.hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76,175,80,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.min-vh-75 { min-height: 75vh; }

.badge-hero {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-dark);
}
.hero-title .text-primary { color: var(--accent) !important; }
.hero-desc { font-size: 1rem; }

.stat-pill {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.stat-pill strong { color: var(--primary); }

/* ── 빠른 견적 카드 ── */
.estimate-quick-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.card-header-custom {
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

/* 이사 종류 그리드 */
.move-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.move-type-item input[type=radio] { display: none; }
.move-type-btn {
    display: block;
    text-align: center;
    padding: 10px 4px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    background: #fafafa;
}
.move-type-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.move-type-item input:checked + .move-type-btn {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
}

/* 견적 신청 버튼 */
.btn-estimate-submit {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
.btn-estimate-submit:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

/* ── 통계 섹션 ── */
.stats-section { background: white; }
.stat-item { padding: 10px; }
.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── 섹션 타이틀 ── */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* ── 견적 카드 ── */
.estimate-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}
.estimate-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.badge-move-type {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.75rem;
}
.estimate-route { font-weight: 600; font-size: 0.9rem; }
.route-from { color: var(--text-dark); }
.route-to { color: var(--primary-dark); }
.bid-count-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── 업체 카드 ── */
.company-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s;
}
.company-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}
.company-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto;
}
.company-name { font-weight: 700; font-size: 0.95rem; }
.star-rating { font-size: 0.9rem; letter-spacing: 1px; }

/* ── 후기 카드 ── */
.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
}
.review-card:hover { box-shadow: var(--card-shadow); }
.review-content { line-height: 1.6; }

/* ── 이용방법 ── */
.step-item { padding: 16px; }
.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* ── 폼 스타일 ── */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: #d4edda;
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

/* ── 테이블 ── */
.table { border-radius: var(--radius-sm); overflow: hidden; }
.table th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; }

/* ── 페이지네이션 ── */
.page-link { color: var(--primary); border-radius: var(--radius-sm); margin: 0 2px; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── 알림 ── */
.alert { border-radius: var(--radius-sm); border: none; }
.alert-success { background: var(--primary-light); color: var(--primary-dark); }

/* ── 푸터 ── */
.footer { background: #1a1a2e !important; }

/* ── 반응형 ── */
@media (max-width: 768px) {
    .hero-section { padding: 40px 0 30px; }
    .hero-title { font-size: 2rem; }
    .move-type-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 1.4rem; }
    .stat-pill { font-size: 0.72rem; padding: 4px 10px; }
}

/* ── 관리자 대시보드 ── */
.admin-sidebar {
    background: #1a1a2e;
    min-height: 100vh;
    color: white;
}
.admin-sidebar .nav-link { color: rgba(255,255,255,0.7); border-radius: var(--radius-sm); }
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { color: white; background: rgba(76,175,80,0.2); }
.admin-stat-card {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--card-shadow);
}

/* ── 유틸리티 ── */
.cursor-pointer { cursor: pointer; }
.fw-800 { font-weight: 800; }
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
}
.btn-accent:hover { background: var(--accent-dark); color: white; }

/* 로딩 스피너 */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
