/* ===================================================
   Nola Tech WhatsApp Widget — widget.css
   =================================================== */

/* ---- Root / positioning ---- */
#nola-wa-root {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    direction: rtl;
}

/* ===== Toggle Button ===== */
#nola-wa-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #c026d3, #7c3aed);
    box-shadow: 0 4px 20px rgba(192,38,211,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    margin-right: 0;
    margin-left: auto;
}

#nola-wa-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(192,38,211,0.7);
}

/* Icon states */
.nola-wa-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.nola-wa-icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.7);
}
.nola-wa-icon--open {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Active (panel open) */
#nola-wa-root.is-open .nola-wa-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.7);
}
#nola-wa-root.is-open .nola-wa-icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Pulse ring */
.nola-wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(192,38,211,0.35);
    animation: nola-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes nola-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0;   }
}

/* ===== Panel ===== */
#nola-wa-panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 310px;
    background: #0d0d1a;
    border: 1px solid rgba(124,58,237,0.35);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(192,38,211,0.15);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#nola-wa-root.is-open #nola-wa-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ===== Header ===== */
.nola-wa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1a0a2e, #160d28);
    border-bottom: 1px solid rgba(124,58,237,0.2);
}

.nola-wa-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(37,211,102,0.35);
}

.nola-wa-header-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nola-wa-header-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.nola-wa-header-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a3a3c2;
    font-size: 12px;
}

.nola-wa-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 6px rgba(37,211,102,0.8);
    animation: nola-blink 1.6s ease-in-out infinite;
}

@keyframes nola-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ===== Body ===== */
.nola-wa-body {
    padding: 16px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nola-wa-greeting {
    color: #d4d4f0;
    font-size: 13px;
    margin: 0 0 4px;
    text-align: right;
}

/* ===== Buttons ===== */
.nola-wa-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nola-wa-btn:hover {
    transform: translateX(-3px);
    text-decoration: none;
}

/* Ramadan button */
.nola-wa-btn--ramadan {
    background: linear-gradient(135deg, rgba(192,38,211,0.18), rgba(124,58,237,0.18));
    border-color: rgba(192,38,211,0.4);
}
.nola-wa-btn--ramadan:hover {
    background: linear-gradient(135deg, rgba(192,38,211,0.3), rgba(124,58,237,0.3));
    box-shadow: 0 4px 18px rgba(192,38,211,0.3);
}

/* SEO button */
.nola-wa-btn--seo {
    background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(99,102,241,0.18));
    border-color: rgba(99,102,241,0.4);
}
.nola-wa-btn--seo:hover {
    background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(99,102,241,0.3));
    box-shadow: 0 4px 18px rgba(99,102,241,0.3);
}

/* Inquiry button */
.nola-wa-btn--inquiry {
    background: linear-gradient(135deg, rgba(37,211,102,0.15), rgba(16,185,129,0.15));
    border-color: rgba(37,211,102,0.35);
}
.nola-wa-btn--inquiry:hover {
    background: linear-gradient(135deg, rgba(37,211,102,0.28), rgba(16,185,129,0.28));
    box-shadow: 0 4px 18px rgba(37,211,102,0.25);
}

.nola-wa-btn-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.nola-wa-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.nola-wa-btn-text strong {
    color: #f0f0ff;
    font-size: 13.5px;
    font-weight: 700;
    display: block;
}

.nola-wa-btn-text small {
    color: #9090b8;
    font-size: 11px;
    display: block;
}

.nola-wa-arrow {
    color: #6060a0;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nola-wa-btn:hover .nola-wa-arrow {
    color: #c0c0e0;
    transform: translateX(-3px);
}

/* ===== Footer ===== */
.nola-wa-footer {
    text-align: center;
    padding: 10px 14px 14px;
    color: #5a5a8a;
    font-size: 11px;
    border-top: 1px solid rgba(124,58,237,0.12);
    margin-top: 4px;
}

/* ===== Mobile ===== */
@media (max-width: 420px) {
    #nola-wa-root {
        bottom: 18px;
        right: 14px;
    }
    #nola-wa-panel {
        width: calc(100vw - 28px);
        right: -14px;
    }
}
