/* Support Page Styles */

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    flex-shrink: 0;
}

.navbar .logo img,
.navbar .logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu > a,
.nav-menu .dropdown > a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    display: block;
    padding: 10px 0;
}

.nav-menu > a:hover,
.nav-menu > a.active,
.nav-menu .dropdown > a:hover {
    color: #ff6b35;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #ff6b35;
    padding-left: 25px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #1a3a6b;
    color: white;
    border-radius: 3px;
}

.lang-divider {
    color: #ccc;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: #f8f9fa;
    color: #ff6b35;
}

.mobile-menu a.submenu {
    padding-left: 40px;
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu > a,
    .nav-menu .dropdown > a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .lang-switcher {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #1a3a6b 0%, #2d5a9e 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Support Tabs Section */
.support-tabs-section {
    background: white;
    border-bottom: 2px solid #e1e4e8;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.support-tabs {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.tab-btn {
    flex: 1;
    padding: 20px 30px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
}

.tab-btn i {
    font-size: 1.3rem;
}

.tab-btn:hover {
    color: #1a3a6b;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #1a3a6b;
    border-bottom-color: #1a3a6b;
    background: white;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 600px;
}

.content-section.active {
    display: block;
}

/* Notices Container */
.notices-container {
    max-width: 1200px;
    margin: 0 auto;
}

.notices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.notices-header h2 {
    font-size: 2rem;
    color: #1a3a6b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.notices-header h2 i {
    color: #ff6b35;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.1);
}

.search-box button {
    padding: 12px 24px;
    background: #1a3a6b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-box button:hover {
    background: #2d5a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 107, 0.3);
}

/* Notices List */
.notices-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.notice-item {
    padding: 25px 30px;
    border-bottom: 1px solid #e1e4e8;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.notice-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.notice-item.pinned {
    background: #fff5f2;
    border-left: 4px solid #ff6b35;
}

.notice-icon {
    font-size: 1.5rem;
    color: #999;
    min-width: 30px;
    text-align: center;
}

.notice-item.pinned .notice-icon {
    color: #ff6b35;
}

.notice-info {
    flex: 1;
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-item.pinned .notice-title {
    color: #ff6b35;
}

.badge-pinned {
    background: #ff6b35;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-new {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.notice-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
}

.notice-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 0.9rem;
}

/* Notice Detail Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.modal-lg {
    max-width: 1000px;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #1a3a6b;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #e1e4e8;
    color: #333;
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 30px;
}

.notice-detail .notice-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 25px;
}

.notice-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.notice-content p {
    margin-bottom: 15px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e1e4e8;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Inquiry Container */
.inquiry-container {
    max-width: 1000px;
    margin: 0 auto;
}

.inquiry-header {
    text-align: center;
    margin-bottom: 50px;
}

.inquiry-header h2 {
    font-size: 2rem;
    color: #1a3a6b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.inquiry-header h2 i {
    color: #ff6b35;
}

.inquiry-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Inquiry Card */
.inquiry-card {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.required {
    color: #ff6b35;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn-submit,
.btn-reset {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit {
    background: #1a3a6b;
    color: white;
}

.btn-submit:hover {
    background: #2d5a9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 107, 0.4);
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.info-card i {
    font-size: 3rem;
    color: #1a3a6b;
    margin-bottom: 20px;
}

.info-card h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a3a6b;
    margin-bottom: 8px;
}

.info-card small {
    color: #999;
    font-size: 0.9rem;
}

/* Loading & Empty States */
.loading-spinner {
    text-align: center;
    padding: 80px 20px;
    color: #1a3a6b;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.loading-spinner span {
    display: block;
    font-size: 1.1rem;
}

.empty-message {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

.empty-message i {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-message p {
    font-size: 1.3rem;
}

/* Buttons */
.btn-primary {
    padding: 12px 30px;
    background: #1a3a6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2d5a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 107, 0.3);
}

/* Dealers Section */
.dealers-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dealers-header {
    text-align: center;
    margin-bottom: 50px;
}

.dealers-header h2 {
    font-size: 2rem;
    color: #1a3a6b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.dealers-header h2 i {
    color: #ff6b35;
}

.dealers-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Region Filter */
.region-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.region-btn {
    padding: 12px 30px;
    border: 2px solid #e1e4e8;
    background: white;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.region-btn:hover {
    border-color: #1a3a6b;
    color: #1a3a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 107, 0.15);
}

.region-btn.active {
    background: #1a3a6b;
    color: white;
    border-color: #1a3a6b;
}

.region-btn.active:hover {
    background: #2d5a9e;
}

/* Dealers Grid */
.dealers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.dealer-card {
    background: white;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    padding: 25px 20px; /* 좌우 패딩 줄임 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 500px; /* 고정 높이 */
    display: flex;
    flex-direction: column;
}

.dealer-card:hover {
    border-color: #1a3a6b;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dealer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #1a3a6b 0%, #2d5a9e 100%);
}

.dealer-header-card {
    margin-bottom: 20px;
}

.dealer-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a6b;
    margin-bottom: 8px;
}

.dealer-region {
    display: inline-block;
    padding: 5px 15px;
    background: #e8f4f8;
    color: #1a3a6b;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dealer-info {
    margin-bottom: 20px;
    flex: 1; /* 남은 공간 차지 */
    overflow-y: auto; /* 스크롤 가능 */
    position: relative;
    max-height: 300px; /* 최대 높이 제한 */
    padding-right: 5px; /* 스크롤바 여백 줄임 */
}

/* 스크롤바 스타일링 */
.dealer-info::-webkit-scrollbar {
    width: 6px;
}

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

.dealer-info::-webkit-scrollbar-thumb {
    background: #1a3a6b;
    border-radius: 10px;
}

.dealer-info::-webkit-scrollbar-thumb:hover {
    background: #2d5a9e;
}

.dealer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px; /* 간격 줄임 */
    margin-bottom: 15px;
    color: #333;
}

.dealer-info-item i {
    width: 18px; /* 아이콘 너비 줄임 */
    color: #1a3a6b;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.dealer-info-item strong {
    min-width: 70px; /* 레이블 너비 줄임 */
    max-width: 70px;
    color: #666;
    font-weight: 600;
    flex-shrink: 0;
}

.dealer-info-item span {
    flex: 1;
    word-break: break-word; /* 긴 텍스트 줄바꿈 */
    overflow-wrap: break-word; /* 긴 단어도 줄바꿈 */
    line-height: 1.5;
}

/* 링크 스타일 개선 */
.dealer-info-item span a {
    color: #1a3a6b;
    text-decoration: underline;
    word-break: break-all; /* URL은 강제 줄바꿈 */
    display: inline-block;
    max-width: 100%;
}

.dealer-info-item span a:hover {
    color: #2d5a9e;
}

/* 이메일, 주소 등 긴 텍스트 처리 */
.dealer-info-item span {
    font-size: 0.95rem; /* 폰트 크기 약간 줄임 */
}

.dealer-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* 하단에 고정 */
    padding-top: 20px;
    border-top: 1px solid #e1e4e8;
}

.btn-dealer-call,
.btn-dealer-email {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-dealer-call {
    background: #1a3a6b;
    color: white;
}

.btn-dealer-call:hover {
    background: #2d5a9e;
    transform: translateY(-2px);
}

.btn-dealer-email {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e4e8;
}

.btn-dealer-email:hover {
    background: #e1e4e8;
    border-color: #d1d5db;
}

.btn-dealer-expand {
    width: 100%;
    padding: 8px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-dealer-expand:hover {
    background: #e1e4e8;
    color: #333;
}

.btn-dealer-expand i {
    transition: transform 0.3s ease;
}

.btn-dealer-expand.expanded i {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dealers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .support-tabs {
        padding: 0 15px;
    }

    .tab-btn {
        padding: 15px 20px;
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn i {
        font-size: 1.5rem;
    }

    .notices-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .notice-item {
        padding: 20px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-title {
        font-size: 1.05rem;
    }

    .notice-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .inquiry-card {
        padding: 30px 20px;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .dealers-grid {
        grid-template-columns: 1fr;
    }

    .region-filter {
        gap: 10px;
    }

    .region-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .dealer-actions {
        flex-direction: column;
    }

    .btn-dealer-call,
    .btn-dealer-email {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .notices-header h2,
    .inquiry-header h2,
    .dealers-header h2 {
        font-size: 1.5rem;
    }

    .inquiry-header p {
        font-size: 1rem;
    }

    .dealers-header p {
        font-size: 1rem;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .notice-icon {
        font-size: 1.2rem;
    }

    .info-card {
        padding: 25px 20px;
    }

    .info-card i {
        font-size: 2.5rem;
    }
}
