/* assets/css/support.css */

.support-container {
    width: 100%;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.support-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem 4rem;
    width: 60%; /* 60% of screen center aligned */
    max-width: 800px;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(91, 33, 182, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.support-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.support-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
    box-shadow: 0 8px 16px -4px rgba(91, 33, 182, 0.2);
}

.support-icon svg {
    width: 32px;
    height: 32px;
}

.support-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.support-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: #f8fafc;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Primary Button Styling match */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(91, 33, 182, 0.2), 0 2px 4px -1px rgba(91, 33, 182, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(91, 33, 182, 0.3), 0 4px 6px -2px rgba(91, 33, 182, 0.15);
}

/* Chat UI Styles for Magic Link Ticket View */
.chat-container {
    display: flex;
    flex-direction: column;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    margin-bottom: 1.5rem;
    min-height: 300px;
    max-height: 500px;
}

.chat-bubble {
    max-width: 85%;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chat-meta {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    opacity: 0.8;
    font-weight: 600;
}

.chat-attachments {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chat-attach-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
}

.chat-reply-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.reply-input-wrapper textarea {
    width: 100%;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s;
    background: #f8fafc;
    margin-bottom: 1rem;
}

.reply-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-outline {
    background: transparent;
    border: 1px dashed var(--text-muted);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.btn-outline svg {
    width: 16px;
    height: 16px;
}

/* Mobile Utility Links */
.mobile-utility-links {
    display: none;
}

@media (max-width: 992px) {
    .support-card {
        width: 80%;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .support-container {
        padding: 1rem;
    }
    
    .support-card {
        width: 100%;
        padding: 2rem 1.5rem;
        border: none;
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    }

    .support-header h1 {
        font-size: 1.8rem;
    }

    .mobile-utility-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--surface-border);
    }

    .mobile-utility-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .mobile-utility-links a:hover {
        color: var(--primary-color);
    }
}
