/*
Theme Name: SmartCamping
Theme URI: https://smartcamping.mycafe24.com
Author: SmartCamping
Description: 스마트캠핑 - 모바일 최적화 버전
Version: 2.1.0
*/

/* ==========================================
   기본 리셋
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   헤더 (모바일 최적화)
========================================== */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.75rem;
    color: #64748b;
    display: none;
}

/* 모바일 메뉴 */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1e293b;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
}
/* ==========================================
   메인 배너 (수정)
========================================== */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}


/* 통계 섹션 */
.stats {
    padding: 2rem 0;
    background: #f8fafc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: #64748b;
}

/* 차량 갤러리 */
.gallery {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

/* 호버 효과 복원 */
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.vehicle-link {
    display: block;
    color: inherit;
}

.vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 이미지 호버 효과 */
.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-content {
    padding: 1rem;
}

.vehicle-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-weight: 600;
}

.vehicle-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.vehicle-info span {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.vehicle-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}

/* 주요 옵션 */
.vehicle-options-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.option-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.option-tag.more {
    background: #f97316;
    color: white;
}

.btn-more {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* 회사소개 - 전문분야 */
.about {
    padding: 2rem 0;
    background: #f8fafc;
}

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

.feature-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* 차량 상세 페이지 - 가독성 개선 */
.vehicle-detail {
    padding: 1.5rem 0 5rem;
}

.vehicle-header {
    margin-bottom: 1.5rem;
}

.vehicle-title-main {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.sold-badge-inline {
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.vehicle-category-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vehicle-price-big {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 1rem 0;
}

.vehicle-main-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.vehicle-main-image img {
    width: 100%;
    height: auto;
}

/* 차량 정보 카드 - 가독성 개선 */
.vehicle-specs-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spec-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.spec-content {
    width: 100%;
}

.spec-label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.spec-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    word-break: break-all;
}

/* 옵션 섹션 */
.vehicle-options-section {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-badge-large {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.description-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 1rem;
}

/* 고정 문의 버튼 */
.contact-buttons-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.contact-btn-fixed {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-btn-fixed.phone {
    background: #10b981;
    color: white;
}

.contact-btn-fixed.kakao {
    background: #fee500;
    color: #3c1e1e;
}

.contact-btn-fixed small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
}

/* 데스크톱 */
@media (min-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .vehicle-specs-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-buttons-fixed {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
}

/* ==========================================
   차량 상세 페이지 (모바일 최적화)
========================================== */
.vehicle-detail {
    padding: 1.5rem 0 5rem;
}

.vehicle-header {
    margin-bottom: 1.5rem;
}

.vehicle-title-main {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.sold-badge-inline {
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.vehicle-category-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vehicle-price-big {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 1rem 0;
}

.vehicle-main-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.vehicle-main-image img {
    width: 100%;
    height: auto;
}

/* 차량 정보 카드 (모바일 최적화) */
.vehicle-specs-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spec-icon {
    font-size: 2rem;
}

.spec-content {
    flex: 1;
}

.spec-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.spec-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

/* 옵션 섹션 */
.vehicle-options-section {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-badge-large {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 설명 박스 */
.vehicle-description-section {
    margin-bottom: 5rem;
}

.description-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 1rem;
}

/* 고정 문의 버튼 */
.contact-buttons-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.contact-btn-fixed {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-btn-fixed.phone {
    background: #10b981;
    color: white;
}

.contact-btn-fixed.kakao {
    background: #fee500;
    color: #3c1e1e;
}

.contact-btn-fixed small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
}

/* 네비게이션 */
.vehicle-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
    margin-bottom: 5rem;
}

.nav-btn {
    background: #f1f5f9;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: #1e293b;
}

.nav-btn:hover {
    background: #e2e8f0;
}

/* ==========================================
   데스크톱 (768px 이상)
========================================== */
@media (min-width: 768px) {
    .logo-text p {
        display: block;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .stats {
        padding: 3rem 0;
    }
    
    .gallery, .about, .contact {
        padding: 3rem 0;
    }
    
    .vehicle-detail {
        padding: 2rem 0 3rem;
    }
    
    .vehicle-specs-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-buttons-fixed {
        display: none;
    }
}


/* ==========================================
   상세페이지 이미지 간격 (가로 2개) - 강제 적용
========================================== */

/* 본문 이미지 컨테이너 */
.vehicle-detail .entry-content,
.single-vehicle .entry-content,
article.vehicle .entry-content,
.vehicle-description {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    margin: 2rem 0 !important;
}

/* 본문 이미지 스타일 */
.vehicle-detail .entry-content img,
.single-vehicle .entry-content img,
article.vehicle .entry-content img,
.vehicle-description img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    display: block !important;
}

/* 이미지 hover 효과 */
.vehicle-detail .entry-content img:hover,
.single-vehicle .entry-content img:hover,
article.vehicle .entry-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease;
}

/* 모바일에서는 1개씩 */
@media (max-width: 767px) {
    .vehicle-detail .entry-content,
    .single-vehicle .entry-content,
    article.vehicle .entry-content,
    .vehicle-description {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .vehicle-detail .entry-content img,
    .single-vehicle .entry-content img,
    article.vehicle .entry-content img,
    .vehicle-description img {
        height: 200px !important;
    }
}

/* Lightbox 링크 스타일 초기화 */
.vehicle-detail .entry-content a,
.single-vehicle .entry-content a,
article.vehicle .entry-content a {
    display: inline-block !important;
    line-height: 0 !important;
    margin: 0 !important;
}


/* ==========================================
   푸터 소셜 아이콘 (아이콘 + 텍스트)
========================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 100px;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 아이콘 스타일 */
.social-links a i {
    font-size: 2rem;
    display: block;
    line-height: 1;
}

/* 텍스트 스타일 */
.social-links a .social-text {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    line-height: 1;
}

/* 1. YouTube - 빨강 배경 + 흰색 글씨 */
.social-youtube {
    background: #FF0000;
    color: white !important;
}

.social-youtube:hover {
    background: #CC0000;
}

.social-youtube i,
.social-youtube .social-text {
    color: white !important;
}

/* 2. Naver - 초록 배경 + 흰색 글씨 */
.social-naver {
    background: #03C75A;
    color: white !important;
}

.social-naver:hover {
    background: #02A048;
}

.social-naver i,
.social-naver .social-text {
    color: white !important;
}

/* 3. KakaoTalk - 노랑 배경 + 검정 글씨 */
.social-kakao {
    background: #FEE500;
    color: #3C1E1E !important;
}

.social-kakao:hover {
    background: #FDD835;
}

.social-kakao i,
.social-kakao .social-text {
    color: #3C1E1E !important;
}

/* 모바일 */
@media (max-width: 767px) {
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        padding: 0.75rem 1rem;
        min-width: 90px;
    }
    
    .social-links a i {
        font-size: 1.5rem;
    }
    
    .social-links a .social-text {
        font-size: 0.8rem;
    }
}
