:root {
    --support-max-width: 1400px;
    --support-radius: 16px;
    /* Dark Theme Palette */
    --support-bg: #0a0c10;
    --support-card-bg: #161b22;
    --support-text: #ffffff;
    --support-muted: #8b949e;
    --support-line: rgba(255, 255, 255, 0.08);
    --support-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
    --support-primary: #0ea5e9;
    --support-primary-dark: #0284c7;
    --support-success: #10b981;
    --support-warning: #f59e0b;
    --support-danger: #ef4444;
}

.support-page {
    background: var(--support-bg);
    color: var(--support-text);
    min-height: 100vh;
}

.support-wrap {
    max-width: var(--support-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================
   HERO
   ========================= */
.support-hero {
    position: relative;
    min-height: 280px;
    padding: calc(var(--fixed-header-height, 130px) + 30px) 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('../images/hero_abstract_bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.support-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 500px at var(--hero-mouse-x, 50%) var(--hero-mouse-y, 50%),
            rgba(255, 255, 255, 0.08) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.support-hero:hover::after {
    opacity: 1;
}

.support-hero__inner {
    max-width: 1400px;
    width: 100%;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.support-hero__icon {
    position: absolute;
    left: 160px;
    top: -20px;
    transform: translateY(-50%);
    width: 160px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.support-hero__icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.support-hero__text {
    text-align: center;
}

.support-hero__eyebrow {
    margin: 0 0 16px 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #81d4fa;
    font-size: 1.1rem;
}

.support-hero__title {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: supportNeonPulse 3s ease-in-out infinite alternate;
}

.support-hero__desc {
    margin: 16px 0 0 0;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@keyframes supportNeonPulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(56, 189, 248, 0.2);
    }

    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(56, 189, 248, 0.5), 0 0 40px rgba(56, 189, 248, 0.3);
    }
}

/* =========================
   SEARCH SECTION
   ========================= */
.support-search-section {
    margin-top: 20px;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
    min-height: 200px;
}

.search-container {
    background: var(--support-card-bg);
    border-radius: var(--support-radius);
    padding: 30px;
    border: 1px solid var(--support-line);
    box-shadow: var(--support-shadow);
    overflow: visible;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--support-line);
    border-radius: 12px;
    padding: 8px 16px;
    margin-bottom: 24px;
}

.search-input-group i {
    color: var(--support-muted);
    font-size: 1.1rem;
}

.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-btn {
    background: var(--support-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--support-primary-dark);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--support-muted);
    font-weight: 500;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--support-line);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--support-primary);
}

.filter-group select option {
    background: #1c2128;
    color: #fff;
}

/* Custom Select (지역 필터) */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--support-line);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.custom-select-trigger i {
    font-size: 0.8rem;
    color: var(--support-muted);
    transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--support-primary);
}

.custom-select-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1c2128;
    border: 1px solid var(--support-line);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.custom-option:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--support-primary);
}

.custom-option.selected {
    background: rgba(14, 165, 233, 0.15);
    color: var(--support-primary);
}

/* Custom scrollbar for options */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =========================
   RESULTS SECTION
   ========================= */
.support-results-section {
    padding: 20px 0 80px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    font-size: 1rem;
    color: var(--support-muted);
}

.results-count strong {
    color: var(--support-primary);
    font-size: 1.3rem;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.subscribe-btn i {
    font-size: 1rem;
}

/* Support List */
.support-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-item {
    display: flex;
    gap: 24px;
    background: var(--support-card-bg);
    border: 1px solid var(--support-line);
    border-radius: var(--support-radius);
    padding: 24px;
    transition: all 0.3s;
}

.support-item:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.support-item__status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--support-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.upcoming {
    background: rgba(245, 158, 11, 0.15);
    color: var(--support-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--support-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.support-item__content {
    flex: 1;
    min-width: 0;
}

.support-item__category {
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--support-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.support-item__title {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.support-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--support-muted);
    margin-right: 16px;
    margin-bottom: 8px;
}

.meta-item i {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* 출처 표시 스타일링 */
.meta-item--source {
    color: var(--support-primary);
    opacity: 0.8;
    font-size: 0.85rem;
}

.support-item__desc {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
}

.support-item__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--support-primary);
    border: 1px solid var(--support-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-detail:hover {
    background: var(--support-primary);
    color: #fff;
}

.btn-detail i {
    font-size: 0.8rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--support-muted);
}

.no-results i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 10px 0;
}

.no-results p {
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--support-card-bg);
    border: 1px solid var(--support-line);
    border-radius: 8px;
    color: var(--support-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: var(--support-primary);
    color: var(--support-primary);
}

.page-link.active {
    background: var(--support-primary);
    border-color: var(--support-primary);
    color: #fff;
}

.page-ellipsis {
    color: var(--support-muted);
    padding: 0 8px;
}

/* =========================
   MODAL
   ========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: var(--support-card-bg);
    border: 1px solid var(--support-line);
    border-radius: 20px;
    padding: 40px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--support-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 20px;
    margin-bottom: 20px;
}

.modal-icon i {
    font-size: 28px;
    color: #fff;
}

.modal-header h2 {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    color: #fff;
}

.modal-header p {
    margin: 0;
    color: var(--support-muted);
    line-height: 1.5;
}

/* Subscribe Form */
.subscribe-form .form-group {
    margin-bottom: 20px;
}

.subscribe-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.subscribe-form label {
    display: block;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.subscribe-form .required {
    color: #f87171;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--support-line);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--support-primary);
    background: rgba(14, 165, 233, 0.05);
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--support-line);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--support-primary);
    width: 16px;
    height: 16px;
}

.checkbox-item input[type="checkbox"]:checked+span {
    color: var(--support-primary);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--support-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--support-line);
    border-radius: 10px;
    color: var(--support-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    border-color: #fff;
    color: #fff;
}

.btn-subscribe {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-page .reveal.is-visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1200px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1000px) {
    .support-wrap {
        padding: 0;
    }

    .support-hero {
        min-height: 330px !important;
        padding: calc(130px + 40px) 0 40px !important;
    }

    .support-hero__inner {
        padding: 0;
        justify-items: center;
        gap: 14px;
    }

    .support-hero__icon {
        display: none;
    }

    .support-hero__eyebrow {
        font-size: 0.98rem;
        line-height: 1.4;
        padding: 0 8px;
    }

    .support-hero__title {
        font-size: 2.22rem;
    }

    .support-hero__text {
        padding: 0 6px;
    }

    .search-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 24px 20px;
    }

    .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .support-list {
        padding: 0 20px;
    }

    .support-item {
        flex-direction: column;
        gap: 16px;
    }

    .support-item__actions {
        width: 100%;
    }

    .btn-detail {
        width: 100%;
        justify-content: center;
    }

    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 0 20px;
    }

    .subscribe-btn {
        justify-content: center;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subscribe-form .form-row {
        grid-template-columns: 1fr;
    }

    /* Disable animations on mobile */
    .support-page .reveal {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 20px;
    }

    .search-input-group {
        flex-wrap: wrap;
    }

    .search-btn {
        width: 100%;
        margin-top: 8px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-subscribe {
        flex: none;
    }
}

@media (max-width: 680px) {
    .support-hero {
        min-height: 330px !important;
        padding: 170px 0 40px !important;
    }
}

/* Footer styling */
.support-page~.site-footer {
    margin-top: 0;
    background: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
