/* ====================================
   Pucre Support Page Styles
   ==================================== */

/* Support Main */
.support-main {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

/* Support Hero */
.support-hero {
    text-align: center;
    margin-bottom: 60px;
}

.support-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.support-hero-icon i {
    font-size: 40px;
    color: white;
}

.support-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.support-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.quick-action-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    border-color: var(--primary-color);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.quick-action-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.quick-action-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Section Styles */
.faq-section,
.chat-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.faq-category-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 2px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-q-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.faq-q-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-arrow {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-a-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.faq-a-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.faq-a-text p {
    margin-bottom: 12px;
}

.faq-a-text p:last-child {
    margin-bottom: 0;
}

.faq-a-text ul,
.faq-a-text ol {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-a-text li {
    margin-bottom: 8px;
}

.faq-a-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ Help Box */
.faq-help-box {
    max-width: 700px;
    margin: 60px auto 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.faq-help-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-help-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.faq-help-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-help-box p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.faq-help-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Chat Container */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-bot-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.chat-bot-avatar i {
    font-size: 24px;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.chat-status {
    font-size: 14px;
    opacity: 0.9;
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chat-clear-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Chat Messages */
.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

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

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.message-content {
    max-width: 70%;
}

.user-message .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.bot-message .message-bubble {
    background: white;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-message .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble p {
    margin: 0 0 8px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: inline-block;
}

/* Typing Indicator */
.typing-indicator {
    opacity: 0.7;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    border-top: 1px solid #e5e7eb;
    background: white;
}

.chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    overflow-x: auto;
    border-bottom: 1px solid #f3f4f6;
}

.chat-suggestions::-webkit-scrollbar {
    height: 4px;
}

.chat-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-suggestions::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.suggestion-chip {
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.chat-input-form {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
}

.chat-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .support-main {
        padding: 100px 0 60px;
    }

    .support-title {
        font-size: 40px;
    }

    .quick-actions {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .support-main {
        padding: 90px 0 50px;
    }

    .support-hero {
        margin-bottom: 40px;
    }

    .support-hero-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .support-hero-icon i {
        font-size: 32px;
    }

    .support-title {
        font-size: 32px;
    }

    .support-subtitle {
        font-size: 16px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 60px;
    }

    .quick-action-card {
        padding: 24px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .faq-categories {
        gap: 8px;
    }

    .faq-category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .faq-question {
        padding: 20px;
        gap: 12px;
    }

    .faq-q-icon,
    .faq-a-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .faq-q-text {
        font-size: 16px;
    }

    .faq-a-text {
        font-size: 15px;
    }

    .faq-help-box {
        padding: 32px 24px;
    }

    .faq-help-box h3 {
        font-size: 20px;
    }

    .faq-help-actions {
        flex-direction: column;
    }

    .faq-help-actions .btn {
        width: 100%;
    }

    .chat-messages {
        height: 400px;
    }

    .message-content {
        max-width: 80%;
    }

    .chat-input-form {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .support-main {
        padding: 85px 0 40px;
    }

    .support-title {
        font-size: 28px;
    }

    .support-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-q-text {
        font-size: 15px;
    }

    .faq-a-text {
        font-size: 14px;
    }

    .faq-help-box {
        padding: 24px 20px;
    }

    .faq-help-box h3 {
        font-size: 18px;
    }

    .faq-help-box p {
        font-size: 14px;
    }

    .chat-header {
        padding: 16px 20px;
    }

    .chat-bot-avatar {
        width: 40px;
        height: 40px;
    }

    .chat-bot-avatar i {
        font-size: 20px;
    }

    .chat-header h3 {
        font-size: 16px;
    }

    .chat-messages {
        height: 350px;
        padding: 20px;
    }

    .message-content {
        max-width: 85%;
    }

    .message-bubble {
        padding: 12px 16px;
        font-size: 14px;
    }

    .chat-input {
        padding: 12px 18px;
        font-size: 14px;
    }

    .chat-send-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}
