/* ============================================
   DIESELNET - WhatsApp Floating Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    transition: all 0.3s ease;
}

.whatsapp-float.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    color: white;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float a:active {
    transform: scale(0.95);
}

/* Pulse Animation */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Tooltip */
.whatsapp-float::before {
    content: 'Contactează-ne pe WhatsApp';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #1e293b;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px; /* Above iOS install banner */
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    
    /* Hide tooltip on mobile */
    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none;
    }
}

/* PWA Mode Adjustments */
@media all and (display-mode: standalone) {
    .whatsapp-float {
        bottom: 20px; /* No iOS banner in PWA */
    }
}

/* ============================================
   Google Reviews Widget
   ============================================ */

.google-reviews-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
}

.google-reviews-widget h3 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.reviews-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reviews-stars {
    font-size: 32px;
    color: #fbbf24;
    letter-spacing: 4px;
}

.reviews-score {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
}

.reviews-count {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

.reviews-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.review-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.review-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.review-btn-secondary {
    background: white;
    color: #06b6d4;
    border: 2px solid #06b6d4;
}

.review-btn-secondary:hover {
    background: #06b6d4;
    color: white;
}

@media (max-width: 768px) {
    .google-reviews-widget {
        padding: 24px;
    }
    
    .reviews-score {
        font-size: 36px;
    }
    
    .reviews-actions {
        flex-direction: column;
    }
    
    .review-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Social Share Buttons
   ============================================ */

.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    margin: 32px 0;
}

.social-share-label {
    font-weight: 700;
    color: #475569;
    font-size: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: scale(0.95);
}

/* Platform Colors */
.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #ea4335;
}

.share-btn.copy {
    background: #64748b;
}

.share-btn.copy.copied {
    background: #10b981;
}

/* Tooltip for Copy Button */
.share-btn.copy::after {
    content: 'Copiat!';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.share-btn.copy.copied::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

@media (max-width: 768px) {
    .social-share {
        justify-content: center;
    }
    
    .social-share-label {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}
