/*
Theme Name: WhatsApp Call Connect Pro
Theme URI: https://wtatchfull.menakumari.online
Author: Saif Ullah
Author URI: https://wtatchfull.menakumari.online
Description: WordPress Live WhatsApp Calling & Chat Landing Theme with USA Girl Profiles & Flashing Call Buttons.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whatsapp-call-pro
*/

:root {
    --wa-green: #25D366;
    --wa-green-dark: #00A884;
    --wa-green-glow: rgba(37, 211, 102, 0.7);
    --wa-danger: #EA0038;
    --wa-bg: #08091a;
    --wa-card-bg: #1e293b;
    --wa-text-primary: #f8fafc;
    --wa-text-secondary: #94a3b8;
    --wa-border: #334155;
    --wa-header-bg: #075E54;
    --wa-header-light: #128C7E;
}

[data-theme="light"] {
    --wa-bg: #f1f5f9;
    --wa-card-bg: #ffffff;
    --wa-text-primary: #0f172a;
    --wa-text-secondary: #64748b;
    --wa-border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    background-color: var(--wa-bg);
    color: var(--wa-text-primary);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* ⚡ REFLASHING / PULSING WHATSAPP ICON ANIMATION */
@keyframes wa-pulse-flash {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 20px 8px rgba(37, 211, 102, 0.95);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes ring-shake {
    0% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-12deg) scale(1.05); }
    20% { transform: rotate(12deg) scale(1.05); }
    30% { transform: rotate(-12deg) scale(1.05); }
    40% { transform: rotate(12deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

.app-header {
    width: 100%;
    background: var(--wa-header-bg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Adjust header top offset if WP Admin Bar is active */
.admin-bar .app-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .app-header {
        top: 46px;
    }
}


.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.live-badge {
    background: #ef4444;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    animation: wa-pulse-flash 2s infinite;
}

.header-status {
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    width: 9px;
    height: 9px;
    background-color: var(--wa-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--wa-green);
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    position: relative;
    z-index: 1;
}

/* Profile Cards Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

.profile-card {
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(249, 168, 212, 0.25);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.profile-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.profile-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wa-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-online-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--wa-green);
    border: 2px solid var(--wa-card-bg);
    border-radius: 50%;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wa-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-sub {
    font-size: 0.84rem;
    color: var(--wa-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-age {
    color: #f43f5e;
    font-weight: 700;
}

/* ⚡ REFLASHING WHATSAPP / CALL ICON BUTTON */
.wa-call-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #00A884);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: wa-pulse-flash 1.8s infinite ease-in-out;
    transition: transform 0.15s ease;
}

.wa-call-btn-icon:hover {
    transform: scale(1.15);
}

.wa-call-btn-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ⚡ TOP NOTIFICATION TOAST */
.wa-notification-toast {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(-150px);
    width: 92%;
    max-width: 420px;
    background: #111b21;
    color: #e9edef;
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1000;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid #222d34;
}

.wa-notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.toast-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wa-green);
}

.toast-app-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111b21;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.toast-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.toast-time {
    font-size: 0.72rem;
    color: var(--wa-green);
    font-weight: 600;
}

.toast-message {
    font-size: 0.84rem;
    color: #8696a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-reply-btn {
    background: #00a884;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* ⚡ SIMULATED INCOMING CALL MODAL POPUP */
.wa-call-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 16px;
}

.wa-call-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.wa-call-modal-box {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #0f172a;
}

.wa-call-modal-backdrop.show .wa-call-modal-box {
    transform: scale(1);
}

.call-modal-title {
    color: #ec4899;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.call-modal-subtitle {
    color: #64748b;
    font-size: 0.86rem;
    margin-bottom: 20px;
}

.call-modal-avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.call-modal-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f43f5e;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.35);
    animation: ring-shake 2.5s infinite ease-in-out;
}

.call-modal-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.call-modal-subtext {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 28px;
}

/* Call Actions Buttons (Accept / Decline) */
.call-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.call-modal-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.call-modal-btn:active {
    transform: scale(0.92);
}

.call-modal-btn.accept-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: wa-pulse-flash 1.5s infinite;
}

.call-modal-btn.decline-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.call-modal-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ⚡ FLOATING WHATSAPP STICKY BUTTON */
.floating-wa-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00a884;
    color: white;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0, 168, 132, 0.45);
    cursor: pointer;
    z-index: 500;
    text-decoration: none;
    animation: wa-pulse-flash 2s infinite ease-in-out;
}

/* ⚡ DARK / LIGHT MODE SWITCHER BUTTON */
.theme-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wa-card-bg);
    color: var(--wa-text-primary);
    border: 2px solid var(--wa-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* =============================================
   ⚡ ROMANTIC GIRL WELCOME POPUP STYLES
   ============================================= */

@keyframes heartbeat {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
    30%  { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
    60%  { transform: scale(1);    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

@keyframes pulseRing {
    0%   { transform: scale(0.95); opacity: 1; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

@keyframes bubbleDots {
    0%, 100% { opacity: 0.2; }
    50%       { opacity: 1;   }
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.welcome-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.welcome-popup-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.welcome-popup-box {
    background: linear-gradient(145deg, #1a0a2e, #2d1557);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 28px;
    padding: 28px 22px 24px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(236, 72, 153, 0.15);
    position: relative;
    animation: popupFadeIn 0.4s ease;
}

.welcome-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.3rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, transform 0.1s;
    z-index: 10;
}

.welcome-close-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Heartbeat ring around avatar */
.welcome-avatar-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 14px;
}

.welcome-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ec4899;
    animation: heartbeat 1.6s infinite ease-in-out;
    display: block;
}

.welcome-online-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid #ec4899;
    animation: pulseRing 1.8s infinite ease-out;
}

.welcome-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.welcome-location {
    font-size: 0.82rem;
    color: #c084fc;
    margin-bottom: 14px;
}

/* Animated speech bubble */
.welcome-bubble {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #fce7f3;
    line-height: 1.55;
    min-height: 52px;
    text-align: left;
    margin-bottom: 18px;
    font-style: italic;
    position: relative;
}

.bubble-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ec4899;
    border-radius: 50%;
    margin: 0 2px;
    animation: bubbleDots 1.2s infinite;
}

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

/* CTA Button */
.welcome-cta-btn {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    transition: transform 0.15s ease;
    letter-spacing: 0.3px;
}

.welcome-cta-btn:active {
    transform: scale(0.96);
}

/* =============================================
   ⚡ ONLINE / OFFLINE STATUS INDICATOR
   ============================================= */

.profile-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.4s ease;
}

.online-dot-status {
    background: #25D366;
    box-shadow: 0 0 6px rgba(37, 211, 102, 0.8);
    animation: statusPulse 1.8s infinite ease-in-out;
}

.offline-dot-status {
    background: #6b7280;
    box-shadow: none;
    animation: none;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.6; transform: scale(1.25); }
}

.status-text {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.4s ease;
}

.online-dot-status ~ .status-text,
.profile-status:has(.online-dot-status) .status-text {
    color: #25D366;
}

.offline-dot-status ~ .status-text,
.profile-status:has(.offline-dot-status) .status-text {
    color: #9ca3af;
}

/* =============================================
   ⚡ SOFT PINK BACKGROUND LIGHT ORBS
   ============================================= */

@keyframes orbFloat1 {
    0%   { transform: translate(0,0)       scale(1);    opacity: 0.45; }
    33%  { transform: translate(80px,-100px) scale(1.2); opacity: 0.60; }
    66%  { transform: translate(-50px,70px)  scale(0.9); opacity: 0.40; }
    100% { transform: translate(0,0)       scale(1);    opacity: 0.45; }
}
@keyframes orbFloat2 {
    0%   { transform: translate(0,0)        scale(1);    opacity: 0.38; }
    33%  { transform: translate(-80px,60px) scale(1.3);  opacity: 0.55; }
    66%  { transform: translate(60px,-70px) scale(0.85); opacity: 0.42; }
    100% { transform: translate(0,0)        scale(1);    opacity: 0.38; }
}
@keyframes orbFloat3 {
    0%   { transform: translate(0,0)      scale(1);    opacity: 0.35; }
    50%  { transform: translate(100px,90px) scale(1.2); opacity: 0.55; }
    100% { transform: translate(0,0)      scale(1);    opacity: 0.35; }
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(55px);
}

.bg-orb-1 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(244,114,182,0.9), transparent 65%);
    top: -120px; left: -100px;
    animation: orbFloat1 11s ease-in-out infinite;
}

.bg-orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(192,132,252,0.85), transparent 65%);
    top: 35%; right: -120px;
    animation: orbFloat2 14s ease-in-out infinite;
}

.bg-orb-3 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(251,113,133,0.85), transparent 65%);
    bottom: -80px; left: 25%;
    animation: orbFloat3 9s ease-in-out infinite;
}

.bg-orb-4 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(236,72,153,0.75), transparent 65%);
    top: 55%; left: 5%;
    animation: orbFloat2 17s ease-in-out infinite reverse;
}

/* =============================================
   ⚡ IMAGE CLICK BLAST + HEART PARTICLES
   ============================================= */

@keyframes particleBurst {
    0%   { transform: translate(0,0) scale(1.5); opacity: 1; }
    60%  { opacity: 0.9; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

@keyframes particleSpin {
    from { rotate: 0deg; }
    to   { rotate: 360deg; }
}

.blast-particle {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 99999;
    animation: particleBurst 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
               particleSpin 0.85s linear forwards;
    line-height: 1;
    will-change: transform, opacity;
}
