/**
 * contact.css
 * ------------------------------------------------------------
 * Contact page styles.
 *
 * Contains:
 * - Support contact list layout
 * - Support item cards
 * - Responsive mobile adjustments
 * - Support icon styling
 * - Support content typography
 * - Status indicator styling
 *
 * This file provides the visual styling for the
 * Contact page and its support options.
 * ------------------------------------------------------------
 */

/* Vertical layout for the support options list */
.support-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual support option card */
.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

/* Hover effect for support cards */
.support-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
    color: inherit;
}

/* Responsive spacing for support cards */
@media (max-width: 576px) {
    .support-item {
        padding: 1rem;
        align-items: center;
    }
}

/* Support icon container */
.support-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Support platform icon */
.support-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Responsive support icon sizing */
@media (max-width: 576px) {
    .support-icon {
        width: 46px;
        height: 46px;
    }

    .support-icon img {
        width: 34px;
        height: 34px;
    }
}

/* Circular support icon variant */
.support-icon-circle {
    border-radius: 50%;
}

/* Support item content layout */
.support-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

/* Support platform title */
.support-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

/* Responsive support title sizing */
@media (max-width: 576px) {
    .support-title {
        font-size: 0.95rem;
    }
}

/* Support status and metadata */
.support-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Online status indicator */
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* Offline status indicator */
.status-dot.offline {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

/* Unavailable status indicator */
.status-dot.unavailable {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Loading and empty state containers */
#loading,
#emptyState {
    padding: 60px;
    text-align: center;
}

/* Empty state styling */
#emptyState {
    display: none;
    color: #6b7280;
}

/* Disabled contact channels */
.support-item.disabled {
    cursor: not-allowed;
}

/* Disable hover effects for unavailable channels */
.support-item.disabled:hover {
    border-color: #e2e8f0;
    box-shadow: none;
    transform: none;
    color: inherit;
}

/* Display the channel icon in grayscale */
.support-item.disabled .support-icon img {
    filter: grayscale(100%);
}

/* QR code canvas */
.contact-qr {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.75rem;
    padding: 12px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
}

/* Contact value container */
.contact-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Responsive contact value container */
@media (max-width:576px) {
    .contact-value-wrapper {
        padding: .8rem;
    }
}

/* Contact value */
.contact-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
}

/* Copy button */
.contact-copy {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    transition: var(--transition);
}

/* Copy button hover */
.contact-copy:hover {
    background: #eff6ff;
}

/* Copy button active */
.contact-copy:active {
    transform: scale(.96);
}

