/* ========== HELP FEATURE STYLES ========== */

/* Landing Page Contact Information */
.landing-contact-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.contact-help-text {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: #6b7280;
    text-align: center;
    margin: 0 0 12px 0;
}

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

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 6px;
    padding: 4px 8px;
}

.contact-method:hover {
    color: #2563eb;
    text-decoration: none;
}

.contact-method svg {
    color: inherit;
    flex-shrink: 0;
}

/* Responsive adjustments for landing contact */
@media (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .contact-method {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Floating Help Button */
.help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #2563eb;
    border: none;
    border-radius: 50%;
    box-shadow: 0px 8px 24px 0px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: var(--primary-font);
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    color: #ffffff;
}

.help-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0px 12px 28px 0px rgba(37, 99, 235, 0.4);
}

.help-button:active {
    transform: translateY(0px);
}

/* Hide help button on landing page for cleaner experience */
body:not(.authenticated) .help-button {
    display: none;
}

/* Help Modal Overlay */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-modal-overlay.active {
    opacity: 1;
}

/* Help Modal Content */
.help-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    font-family: var(--primary-font);
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.15);
}

.help-modal-overlay.active .help-modal {
    transform: translateY(0);
}

/* Help Modal Header */
.help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.help-modal-title {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    margin: 0;
}

.help-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.help-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Help Modal Content */
.help-modal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.help-modal-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Contact Methods */
.help-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.help-contact-method:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.help-contact-icon {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-contact-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
    fill: currentColor;
}

.help-contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-contact-label {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: #374151;
}

.help-contact-value {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: #111827;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .help-modal {
        padding: 24px;
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }

    .help-modal-title {
        font-size: 20px;
    }

    .help-contact-method {
        padding: 16px;
    }

    .help-contact-icon {
        width: 36px;
        height: 36px;
    }

    .help-contact-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Ensure help button doesn't interfere with processing modal */
.processing-modal:not([style*="display: none"]) ~ .help-button {
    bottom: 80px;
}

/* Animation for help button entrance */
@keyframes helpButtonEntrance {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.help-button {
    animation: helpButtonEntrance 0.5s ease-out;
}
