/* ========================================
   SUPPORT PAGE - CSS
   ======================================== */

/* Page Header */
.page-header {
    padding: 100px 0 30px;
    text-align: center;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--earth-text-muted);
}

/* Support Quick Menu */
.support-quick {
    padding: 0 0 40px;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-card {
    background: rgba(26, 58, 92, 0.4);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-card:hover {
    background: rgba(26, 58, 92, 0.6);
    border-color: var(--earth-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
}

.quick-card.active {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--earth-primary);
}

.quick-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--earth-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quick-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--earth-dark);
}

.quick-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--earth-text);
    margin-bottom: 8px;
}

.quick-card p {
    font-size: 0.9rem;
    color: var(--earth-text-muted);
}

/* Live Chat Card */
.quick-card.live-chat {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(0, 153, 255, 0.15) 100%);
}

.live-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Support Content */
.support-content {
    padding: 0 0 60px;
}

.support-tab {
    display: none;
}

.support-tab.active {
    display: block;
}

.tab-header {
    margin-bottom: 30px;
}

.tab-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--earth-text);
    margin-bottom: 20px;
}

/* Notice List */
.notice-list {
    background: rgba(26, 58, 92, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0, 212, 170, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.notice-item:hover {
    background: rgba(0, 212, 170, 0.05);
}

.notice-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
}

.notice-item.important .notice-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
}

.notice-item:not(.important) .notice-badge {
    background: rgba(0, 212, 170, 0.2);
    color: var(--earth-primary);
}

.notice-title {
    flex: 1;
    font-size: 0.95rem;
    color: var(--earth-text);
}

.notice-date {
    font-size: 0.85rem;
    color: var(--earth-text-muted);
    margin-left: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 16px;
    background: rgba(26, 58, 92, 0.4);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 8px;
    color: var(--earth-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--earth-gradient);
    border-color: transparent;
    color: var(--earth-dark);
}

/* FAQ */
.faq-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.faq-cat {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 25px;
    color: var(--earth-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-cat:hover,
.faq-cat.active {
    background: var(--earth-gradient);
    border-color: transparent;
    color: var(--earth-dark);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(26, 58, 92, 0.3);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 212, 170, 0.05);
}

.faq-q, .faq-a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.faq-q {
    background: var(--earth-gradient);
    color: var(--earth-dark);
}

.faq-a {
    background: rgba(0, 212, 170, 0.2);
    color: var(--earth-primary);
}

.faq-question span:not(.faq-q):not(.faq-toggle) {
    flex: 1;
    font-size: 1rem;
    color: var(--earth-text);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--earth-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    align-items: flex-start;
}

.faq-item.active .faq-answer {
    display: flex;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--earth-text-muted);
    line-height: 1.7;
}

/* Inquiry */
.inquiry-history {
    margin-bottom: 40px;
}

.inquiry-history h3,
.inquiry-form-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--earth-text);
    margin-bottom: 20px;
}

.inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inquiry-item {
    background: rgba(26, 58, 92, 0.3);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-item:hover {
    background: rgba(26, 58, 92, 0.5);
    border-color: rgba(0, 212, 170, 0.3);
}

.inquiry-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.inquiry-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.inquiry-status.answered {
    background: rgba(0, 212, 170, 0.2);
    color: var(--earth-primary);
}

.inquiry-status.waiting {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.inquiry-title {
    flex: 1;
    font-size: 0.95rem;
    color: var(--earth-text);
}

.inquiry-date {
    font-size: 0.85rem;
    color: var(--earth-text-muted);
}

/* Inquiry Form */
.inquiry-form-section {
    background: rgba(26, 58, 92, 0.3);
    border-radius: 16px;
    padding: 30px;
}

.inquiry-form .form-group {
    margin-bottom: 20px;
}

.inquiry-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--earth-text);
    margin-bottom: 8px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(5, 13, 26, 0.6);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 10px;
    color: var(--earth-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--earth-primary);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.2);
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 150px;
}

.inquiry-form select {
    cursor: pointer;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(5, 13, 26, 0.6);
    border: 2px dashed rgba(0, 212, 170, 0.3);
    border-radius: 10px;
    color: var(--earth-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--earth-primary);
    background: rgba(0, 212, 170, 0.05);
}

.file-label svg {
    width: 24px;
    height: 24px;
    stroke: var(--earth-primary);
}

.inquiry-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--earth-gradient);
    border: none;
    border-radius: 10px;
    color: var(--earth-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--earth-glow);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    background: rgba(10, 22, 40, 0.98);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.chat-widget.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: var(--earth-gradient);
    color: var(--earth-dark);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.chat-status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--earth-dark);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-body {
    flex: 1;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.system {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    color: var(--earth-text);
}

.chat-message.user {
    background: var(--earth-gradient);
    color: var(--earth-dark);
    margin-left: auto;
    border-radius: 16px 16px 4px 16px;
}

.chat-message.support {
    background: rgba(26, 58, 92, 0.6);
    color: var(--earth-text);
    border-radius: 16px 16px 16px 4px;
}

.chat-time {
    display: block;
    font-size: 0.75rem;
    color: var(--earth-text-muted);
    margin-top: 5px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 212, 170, 0.1);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(5, 13, 26, 0.6);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 25px;
    color: var(--earth-text);
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--earth-primary);
}

.chat-send {
    width: 44px;
    height: 44px;
    background: var(--earth-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.1);
}

.chat-send svg {
    width: 20px;
    height: 20px;
    stroke: var(--earth-dark);
}

/* Floating Chat Button */
.chat-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--earth-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-float-btn:hover {
    transform: scale(1.1);
}

.chat-float-btn svg {
    width: 28px;
    height: 28px;
    stroke: var(--earth-dark);
}

/* Inquiry Modal */
.inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 13, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inquiry-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.inquiry-modal-content {
    width: 100%;
    max-width: 500px;
    background: rgba(10, 22, 40, 0.98);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
}

.inquiry-modal-content .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--earth-text);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.inquiry-modal-content .modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.inquiry-modal-header {
    padding: 25px 30px;
    background: var(--earth-gradient);
    text-align: center;
}

.inquiry-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--earth-dark);
    margin-bottom: 5px;
}

.inquiry-modal-header p {
    font-size: 0.9rem;
    color: rgba(10, 22, 40, 0.7);
}

.inquiry-modal .inquiry-form {
    padding: 25px 30px;
}

.inquiry-modal .form-group {
    margin-bottom: 18px;
}

.inquiry-modal .btn-submit {
    margin-top: 10px;
}

/* File Upload in Modal */
.inquiry-modal .file-upload {
    position: relative;
}

.inquiry-modal .file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.inquiry-modal .file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(5, 13, 26, 0.6);
    border: 2px dashed rgba(0, 212, 170, 0.3);
    border-radius: 10px;
    color: var(--earth-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-modal .file-label:hover {
    border-color: var(--earth-primary);
    background: rgba(0, 212, 170, 0.05);
}

.inquiry-modal .file-label svg {
    width: 20px;
    height: 20px;
    stroke: var(--earth-primary);
    flex-shrink: 0;
}

.inquiry-modal .file-label span {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-modal .file-label.has-file {
    border-color: var(--earth-primary);
    background: rgba(0, 212, 170, 0.1);
}

/* Promotion Card */
.quick-card.promotion-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
    text-decoration: none;
}

.quick-card.promotion-card:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 165, 0, 0.25) 100%);
}

.quick-card.promotion-card .quick-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}

/* Notice Card */
.quick-card.notice-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 71, 87, 0.15) 100%);
    text-decoration: none;
}

.quick-card.notice-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25) 0%, rgba(255, 71, 87, 0.25) 100%);
}

.quick-card.notice-card .quick-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
}

/* Responsive */
@media (max-width: 1200px) {
    .quick-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .quick-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .quick-cards {
        grid-template-columns: 1fr;
    }

    .quick-card {
        padding: 20px;
    }

    .notice-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .notice-title {
        order: 3;
        width: 100%;
    }

    .notice-date {
        margin-left: auto;
    }

    .faq-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .inquiry-info {
        flex-wrap: wrap;
    }

    .chat-widget {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 80px;
    }
}
