/* UrduPress Tools Pro - Main Styles */

/* ==========================================
   LOADING SCREEN STYLES
   ========================================== */
.utp-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* Style 1 - Bouncing Logo */
.utp-style1 {
    text-align: center;
}

.utp-style1 .utp-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 30px;
}

.utp-bounce {
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.utp-text {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0;
}

.utp-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Style 2 - Pulsing Logo */
.utp-style2 {
    text-align: center;
}

.utp-logo-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.utp-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.utp-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.utp-dots span {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: dot-wave 1.4s ease-in-out infinite;
}

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

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

@keyframes dot-wave {
    0%, 60%, 100% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.5); opacity: 0.7; }
}

/* Style 3 - Rotating with Progress */
.utp-style3 {
    text-align: center;
}

.utp-circle-border {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.utp-rotate {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.utp-fade {
    animation: fade 2s ease-in-out infinite;
}

@keyframes fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.utp-progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin: 30px auto 0;
    overflow: hidden;
}

.utp-progress {
    width: 100%;
    height: 100%;
    background: #fff;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================
   PROTECTION NOTIFICATIONS
   ========================================== */
.utp-protection-notification,
.utp-image-protection-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    z-index: 999998;
    opacity: 0;
    transition: all 0.3s ease;
}

.utp-protection-notification.show,
.utp-image-protection-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.utp-shield-icon,
.utp-image-icon {
    font-size: 24px;
}

/* ==========================================
   WHATSAPP CHAT WIDGET
   ========================================== */
.utp-whatsapp-widget {
    position: fixed;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 9997;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.utp-whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.6);
}

.utp-whatsapp-bottom-right {
    bottom: 20px;
    right: 20px;
}

.utp-whatsapp-bottom-left {
    bottom: 20px;
    left: 20px;
}

.utp-whatsapp-icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

.utp-whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 8px;
}

.utp-whatsapp-widget:hover .utp-whatsapp-tooltip {
    opacity: 1;
}

/* ==========================================
   CLICK TO CALL BUTTON
   ========================================== */
.utp-click-to-call {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    z-index: 9996;
    transition: all 0.3s ease;
}

.utp-click-to-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.6);
}

.utp-call-icon {
    width: 20px;
    height: 20px;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .utp-click-to-call {
        display: flex;
    }
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */
.utp-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 999997;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.utp-cookie-consent.show {
    transform: translateY(0);
}

.utp-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.utp-cookie-content {
    flex: 1;
}

.utp-cookie-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.utp-cookie-link {
    color: #667eea;
    text-decoration: underline;
    margin-left: 10px;
}

.utp-cookie-link:hover {
    color: #764ba2;
}

.utp-cookie-actions {
    display: flex;
    gap: 12px;
}

.utp-cookie-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.utp-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .utp-style1 .utp-logo,
    .utp-style2 .utp-logo,
    .utp-style3 .utp-logo {
        max-width: 100px;
    }
    
    .utp-text {
        font-size: 20px;
    }
    
    .utp-logo-container,
    .utp-circle-border {
        width: 120px;
        height: 120px;
    }
    
    .utp-progress-bar {
        width: 150px;
    }
    
    .utp-whatsapp-widget {
        width: 55px;
        height: 55px;
    }
    
    .utp-whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .utp-cookie-container {
        flex-direction: column;
        text-align: center;
    }
    
    .utp-cookie-text {
        font-size: 14px;
    }
    
    .utp-protection-notification,
    .utp-image-protection-notification {
        top: 20px;
        left: 10px;
        right: 10px;
        transform: translateX(0) translateY(-100px);
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .utp-protection-notification.show,
    .utp-image-protection-notification.show {
        transform: translateX(0) translateY(0);
    }
}

/* ==========================================
   RTL SUPPORT
   ========================================== */
[dir="rtl"] .utp-whatsapp-bottom-right {
    right: auto;
    left: 20px;
}

[dir="rtl"] .utp-whatsapp-bottom-left {
    left: auto;
    right: 20px;
}

[dir="rtl"] .utp-click-to-call {
    right: auto;
    left: 20px;
}

[dir="rtl"] .utp-cookie-link {
    margin-left: 0;
    margin-right: 10px;
}

/* ==========================================
   STICKY NOTIFICATION BAR
   ========================================== */
.utp-notification-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999996;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.utp-notification-bar.show {
    transform: translateY(0);
}

.utp-notification-top {
    top: 0;
}

.utp-notification-bottom {
    bottom: 0;
    transform: translateY(100%);
}

.utp-notification-bottom.show {
    transform: translateY(0);
}

.utp-notification-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.utp-notification-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.utp-notification-text {
    font-size: 15px;
    font-weight: 600;
}

.utp-countdown {
    background: rgba(0,0,0,0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.utp-notification-link {
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.3s;
}

.utp-notification-link:hover {
    opacity: 0.8;
}

.utp-notification-close {
    background: rgba(0,0,0,0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.utp-notification-close:hover {
    background: rgba(0,0,0,0.4);
}

/* ==========================================
   PROFESSIONAL WHATSAPP CHAT POPUP
   ========================================== */
.utp-whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 9995;
    cursor: pointer;
    transition: all 0.3s ease;
}

.utp-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

.utp-wa-bottom-right {
    bottom: 20px;
    right: 20px;
}

.utp-wa-bottom-left {
    bottom: 20px;
    left: 20px;
}

.utp-wa-icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

.utp-wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF4444;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.utp-whatsapp-popup {
    position: fixed;
    bottom: 100px;
    width: 380px;
    max-width: calc(100% - 40px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 9994;
    opacity: 0;
    transform: scale(0.8);
    transform-origin: bottom;
    transition: all 0.3s ease;
    pointer-events: none;
}

.utp-whatsapp-popup.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.utp-wa-bottom-right + .utp-whatsapp-popup {
    right: 20px;
}

.utp-wa-bottom-left + .utp-whatsapp-popup {
    left: 20px;
}

.utp-wa-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.utp-wa-header-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.utp-wa-header-subtitle {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.utp-wa-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.utp-wa-close:hover {
    background: rgba(255,255,255,0.3);
}

.utp-wa-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.utp-wa-agent {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    background: #f5f5f5;
}

.utp-wa-agent:hover {
    background: #e8f5e9;
    transform: translateX(-5px);
}

.utp-wa-agent-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.utp-wa-agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.utp-wa-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.utp-wa-online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #4CAF50;
    border: 2px solid #fff;
    border-radius: 50%;
}

.utp-wa-agent-info {
    flex: 1;
}

.utp-wa-agent-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #333;
}

.utp-wa-agent-title {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px 0;
}

.utp-wa-agent-status {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 600;
}

.utp-wa-agent-icon {
    width: 28px;
    height: 28px;
    color: #25D366;
    flex-shrink: 0;
}

.utp-wa-footer {
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .utp-whatsapp-popup {
        width: calc(100% - 40px);
        bottom: 90px;
    }
    
    .utp-notification-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .utp-notification-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
