/* Cutova Support Page Styles */

/* Support Hero */
.support-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 20%, rgba(255,255,255,0.03) 50%, transparent 80%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255,255,255,0.05) 35px, rgba(255,255,255,0.05) 70px),
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.03) 80px, rgba(255,255,255,0.03) 160px);
    opacity: 0.4;
    animation: cityScroll 60s linear infinite;
}

.support-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background:
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%),
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 40px,
            rgba(255,255,255,0.08) 40px,
            rgba(255,255,255,0.08) 45px,
            transparent 45px,
            transparent 60px,
            rgba(255,255,255,0.05) 60px,
            rgba(255,255,255,0.05) 70px,
            transparent 70px,
            transparent 90px,
            rgba(255,255,255,0.1) 90px,
            rgba(255,255,255,0.1) 100px,
            transparent 100px,
            transparent 140px
        );
    animation: buildingShift 40s linear infinite;
}

@keyframes cityScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200px); }
}

@keyframes buildingShift {
    0% { transform: translateX(0); }
    100% { transform: translateX(140px); }
}

.support-hero > * {
    position: relative;
    z-index: 1;
}

.support-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-wrap: balance;
}

.search-box {
    max-width: 700px;
    margin: 40px auto 0;
    display: flex;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
    color: var(--ink);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    white-space: nowrap;
}

/* Support Options */
.support-options {
    padding: 80px 0;
    background: var(--bg);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.option-card {
    background: var(--bg-subtle);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

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

.option-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.option-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--ink);
}

.option-card p {
    color: var(--ink-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.option-card .btn {
    width: 100%;
}

.option-card a.btn {
    display: block;
}

/* Ticket Form Section */
.ticket-section {
    padding: 60px 0;
    background: var(--bg-subtle);
}

.ticket-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--ink-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--bg-subtle);
    color: var(--ink);
}

.ticket-form-wrapper h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--ink);
}

.form-subtitle {
    color: var(--ink-muted);
    margin-bottom: 32px;
}

.support-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.support-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.support-form label {
    font-weight: 600;
    color: var(--ink);
}

.support-form input,
.support-form select,
.support-form textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.2s;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.support-form textarea {
    resize: vertical;
}

.support-form .hint {
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 4px;
}

.support-form button[type="submit"] {
    width: 100%;
    margin-top: 16px;
}

/* Knowledge Base */
.knowledge-base {
    padding: 80px 0;
    background: var(--bg);
}

.knowledge-base h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--ink);
}

.kb-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.kb-category {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: box-shadow 0.2s;
}

.kb-category:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.kb-category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--ink);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

.kb-articles {
    list-style: none;
}

.kb-articles li {
    margin-bottom: 12px;
}

.kb-articles a {
    color: var(--ink);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    padding-left: 12px;
}

.kb-articles a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 16px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-subtle);
}

.faq-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--ink);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-subtle);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 12px;
}

.faq-answer ul {
    margin: 12px 0 12px 24px;
    color: var(--ink);
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

/* Contact Support */
.contact-support {
    padding: 60px 0;
    background: var(--bg);
    text-align: center;
}

.contact-support h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--ink);
}

.contact-support p {
    font-size: 18px;
    color: var(--ink-muted);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.contact-method {
    color: var(--ink);
}

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

.contact-method a:hover {
    text-decoration: underline;
}

/* Error code buttons */
.error-list button:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateX(4px);
}

/* Article modal styling */
#articleContent h1,
#articleContent h2,
#articleContent h3 {
    text-wrap: balance;
}

#articleContent code {
    font-family: 'Courier New', monospace;
}

#articleContent pre {
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .support-hero h1 {
        font-size: 32px;
    }

    .search-box {
        flex-direction: column;
    }

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

    .ticket-form-wrapper {
        padding: 32px 24px;
    }

    .kb-categories {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        gap: 16px;
    }

    .faq-question {
        font-size: 16px;
        padding: 16px;
    }

    .knowledge-base h2,
    .faq-section h2,
    .contact-support h2 {
        font-size: 28px;
    }
}
