/* 호주장터 - 부드럽고 현대적인 디자인 */

:root {
    --primary: #ff6b35;
    --primary-light: #ff8c5a;
    --primary-lighter: #fff5f0;
    --success: #28a745;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light: #f8f9fa;
    --border: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 네비게이션 */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary) !important;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* 히어로 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../back.png') center/cover;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.stats-inline {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 섹션 */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* 시즌 섹션 */
.season-section {
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    padding: 3.5rem 0;
}

.season-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.season-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}

.season-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.season-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.season-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.season-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.season-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(255,107,53,0.2);
    border-color: var(--primary);
}

.season-card:hover::before {
    transform: scaleY(1);
}

.season-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.season-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.season-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.season-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.season-btn {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.season-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.quick-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.quick-link-btn {
    background: white;
    border: 2px solid var(--primary);
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255,107,53,0.1);
}

.quick-link-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.3);
}

.quick-link-btn i {
    font-size: 1.15rem;
}

/* 카드 */
.work-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    background: white;
    padding: 2rem;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255,107,53,0.15);
    border-color: var(--primary);
}

.work-card.factory {
    border-left: 4px solid var(--primary);
}

.work-card.farm {
    border-left: 4px solid var(--success);
}

.work-card.all {
    border-left: 4px solid #17a2b8;
}

.work-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.work-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.work-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.work-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.work-card li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.work-card li i {
    color: var(--success);
    margin-right: 0.5rem;
}

.badge-custom {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 0.5rem;
}

/* 버튼 */
.btn-primary {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* 결과 카드 */
.job-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.job-card .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.25rem;
    font-weight: 700;
    border: none;
}

.job-card .card-body {
    padding: 1.5rem;
}

.job-card .card-body p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.job-card .card-body strong {
    color: var(--dark);
    font-weight: 600;
}

.recommended-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
    z-index: 10;
}

/* 모달 */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.15rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 1.25rem 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 0.75rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.detail-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-value ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.detail-value li {
    background: white;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.modal-footer {
    border: none;
    padding: 1rem 1.5rem;
    background: var(--light);
}

/* 푸터 */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

footer h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

.footer-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.footer-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

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

.footer-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-legal {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.footer-legal-en {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .stats-inline {
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.4rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .season-section {
        padding: 2rem 0;
    }
    
    .season-header {
        margin-bottom: 1.5rem;
    }
    
    .season-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1.25rem;
    }
    
    .season-header h2 {
        font-size: 1.35rem;
    }
    
    .season-header p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .season-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .season-card-icon {
        font-size: 2.25rem;
    }
    
    .season-card h3 {
        font-size: 1.2rem;
    }
    
    .season-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .season-tags {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .season-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .quick-links {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .quick-link-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-stats {
        gap: 1.5rem;
    }
    
    .footer-stat-number {
        font-size: 1.5rem;
    }
    
    .footer-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.15rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .hero {
        padding: 1.75rem 0 1.25rem;
    }
    
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .hero .lead {
        font-size: 0.9rem;
    }
    
    .stats-inline {
        gap: 0.5rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.05rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .season-section {
        padding: 1.5rem 0;
    }
    
    .season-badge {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
    }
    
    .season-header h2 {
        font-size: 1.15rem;
    }
    
    .season-header p {
        font-size: 0.85rem;
    }
    
    .season-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .season-card-icon {
        font-size: 2rem;
    }
    
    .season-card h3 {
        font-size: 1.1rem;
    }
    
    .season-card p {
        font-size: 0.85rem;
    }
    
    .season-tags {
        gap: 0.35rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }
    
    .season-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    .quick-link-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }
    
    .quick-link-btn i {
        font-size: 1rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .detail-item {
        padding: 0.6rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
    
    .footer-stats {
        gap: 1rem;
    }
    
    .footer-stat-number {
        font-size: 1.35rem;
    }
    
    .footer-stat-label {
        font-size: 0.75rem;
    }
}

/* 공장/농장 카드 스타일 */
.job-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: visible;  /* 배지가 잘리지 않도록 */
    position: relative;
}

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

.job-card .card-header {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px 12px 0 0;  /* 상단 모서리만 둥글게 */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card .card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #000 !important;
    border-bottom: 3px solid #ff9800;
}

.job-card .card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-bottom: 3px solid #1e7e34;
}

.job-card .card-body {
    padding: 1.25rem;
}

.job-card .card-body p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.job-card .card-body strong {
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
}

.farm-card {
    border-color: #28a745;
}

.farm-card:hover {
    border-color: #20c997;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}

/* 추천 카드 - 특별한 테두리 */
.recommended-card {
    border: 3px solid #ff6b35 !important;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3) !important;
    position: relative;
    margin-top: 1rem !important;
}

.recommended-card::before {
    content: '⭐ 추천';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.5);
    white-space: nowrap;
}

.recommended-card:hover {
    border-color: #ff8c5a !important;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4) !important;
}

.recommended-card:hover::before {
    transform: translateX(-50%) scale(1.05);
}

/* 지역 배지 - 우측 상단 */
.location-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 주별 필터 탭 */
.state-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.state-tab {
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.state-tab:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.state-tab.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.state-tab .badge {
    background: rgba(0,0,0,0.15);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.state-tab.active .badge {
    background: rgba(255,255,255,0.35);
    color: white;
}



/* 모달 헤더 스타일 */
.modal-header {
    transition: all 0.3s ease;
}

/* 반응형 */
@media (max-width: 768px) {
    /* 퀵 링크 버튼 - 모바일에서 3개 가로 배치 유지 */
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .quick-link-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .quick-link-btn i {
        font-size: 1.2rem;
    }
    
    .quick-link-btn span {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* 주별 필터 탭 - 4개씩 2줄 */
    .state-filter-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        padding: 0.75rem;
    }
    
    .state-tab {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .state-tab .badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
    
    /* 카드 스타일 조정 */
    .job-card .card-header {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .job-card .card-body {
        padding: 0.75rem;
    }
    
    .job-card .card-body p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    /* 지역 배지 모바일 */
    .location-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        top: 6px;
        right: 6px;
    }
    
    /* 추천 배지 모바일 */
    .recommended-card::before {
        font-size: 0.7rem;
        padding: 0.3rem 0.85rem;
        top: -12px;
    }
    
    .recommended-card {
        border-width: 2.5px !important;
        margin-top: 0.75rem !important;
    }
}

/* 퀵 링크 버튼 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.quick-link-btn {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.quick-link-btn:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255,107,53,0.15);
}

.quick-link-btn:active,
.quick-link-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quick-link-btn:active i,
.quick-link-btn.active i {
    color: white;
}

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

/* 카드 컨테이너 - 추천 배지 공간 확보 */
#factoryCards,
#farmCards {
    padding-top: 1.5rem;
}

/* 모든 카드 아이템에 상단 여백 */
.factory-item,
.farm-item {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* 로딩 인디케이터 */
.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.factory-loader,
.farm-loader {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
}

.factory-loader i,
.farm-loader i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 1;
}

.factory-loader i {
    color: #ffc107;
}

.farm-loader i {
    color: #28a745;
}

.factory-loader .spinner-border,
.farm-loader .spinner-border {
    width: 80px;
    height: 80px;
    border-width: 4px;
}

.factory-loader .spinner-border {
    color: #ffc107;
}

.farm-loader .spinner-border {
    color: #28a745;
}

.loading p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray);
}

/* ============================================
   모달 스크롤 및 중앙 정렬 수정
   ============================================ */

/* 모달 열릴 때 body 스크롤 방지 */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* 모달 배경 */
.modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* 모달 다이얼로그 중앙 정렬 */
.modal-dialog {
    margin: 1.75rem auto;
    max-width: 800px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

/* 모달 컨텐츠 */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 16px;
    outline: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* 모달 헤더 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

/* 모달 바디 */
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* 모달 바디 스크롤바 스타일 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 모달 푸터 */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 16px 16px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 1rem);
        align-items: center;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 200px);
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        border-radius: 0 0 12px 12px;
    }
}

/* 아주 작은 화면 */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 0.5rem);
    }
    
    .modal-body {
        max-height: calc(100vh - 180px);
    }
}
