/* WhatsApp Contact Plugin - OJS 3.5 */

/* ===== Field di Registrasi & Profil ===== */
.whatsapp-field-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.whatsapp-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.whatsapp-input-wrapper:focus-within {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.whatsapp-input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    background-color: #f0fdf4;
    border-right: 1px solid #d0d5dd;
}

.whatsapp-input-prefix svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.whatsapp-input-wrapper input[type="tel"],
.whatsapp-input-wrapper input[type="text"] {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.whatsapp-field-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== Tombol WhatsApp di Submission Detail ===== */
.whatsapp-author-contacts {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.whatsapp-author-contacts h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-author-contacts h4 svg {
    width: 16px;
    height: 16px;
}

.whatsapp-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.whatsapp-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.whatsapp-contact-author-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
    text-decoration: none !important;
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.whatsapp-number-display {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

/* ===== Badge di submission list ===== */
.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background-color: #dcfce7;
    color: #166534;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.whatsapp-badge svg {
    width: 11px;
    height: 11px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .whatsapp-contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
