/* ============================================
   STICKY WIDGETS CSS - SEPARATE FILE
   Purpose: Right-side floating widgets (Book Appointment & WhatsApp)
   ============================================ */

/* ============================================
   WIDGET CONTAINER
   ============================================ */
.sticky-widgets {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0;
    transition: all 0.3s ease;
}

/* ============================================
   BASE WIDGET BUTTON STYLES
   ============================================ */
.widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.widget-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.widget-btn:hover::before {
    left: 100%;
}

/* ============================================
   BOOK APPOINTMENT WIDGET
   ============================================ */
.book-appt {
       background: linear-gradient(135deg, #cb0c0c, #952624);
    color: #ffffff;
    width: 52px;
    /* height: 200px; */
    border-radius: 6px 0 0 6px;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0.65rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.book-appt .widget-text {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    transition: letter-spacing 0.3s 
ease;
    transform: rotate(180deg);
}

.book-appt .widget-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

 
/* ============================================
   WHATSAPP WIDGET
   ============================================ */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 8px 0 0 8px;
    font-size: 1.8rem;
}

 

.whatsapp-btn i {
    animation: swing 3s ease-in-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
    .sticky-widgets {
        right: 0;
    }
    
    .book-appt {
        width: 55px;
        height: 180px;
        padding: 1.25rem 0.65rem;
    }
    
    .book-appt .widget-text {
        font-size: 0.875rem;
    }
    
    .book-appt .widget-icon {
        font-size: 1.25rem;
    }
    
     
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }
    
    .whatsapp-btn:hover {
        width: 65px;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .sticky-widgets {
        gap: 0.75rem;
    }
    
    .book-appt {
        width: 50px;
        height: 160px;
        padding: 1rem 0.5rem;
    }
    
    .book-appt .widget-text {
        font-size: 0.8125rem;
        letter-spacing: 0.75px;
    }
    
    .book-appt .widget-icon {
        font-size: 1.125rem;
    }
    
   
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
   
}

/* Extra Small Mobile (≤ 576px) */
@media (max-width: 576px) {
    .sticky-widgets {
        gap: 0.65rem;
        right: 0;
    }
    
    .book-appt {
        width: 48px;
        height: 180px;
        padding: 0.875rem 0.45rem;
        border-radius: 8px 0 0 8px;
    }
    
    .book-appt .widget-text {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .book-appt .widget-icon {
        font-size: 1rem;
    }
    
    
    .whatsapp-btn {
        width: 48px;
        height: 48px;
        font-size: 1.375rem;
        border-radius: 8px 0 0 8px;
    }
    
    
}

/* Very Small Devices (≤ 375px) */
@media (max-width: 375px) {
    .book-appt {
        width: 45px;
        height: 140px;
        padding: 0.75rem 0.4rem;
    }
    
    .book-appt .widget-text {
        font-size: 0.7rem;
    }
    
    .book-appt .widget-icon {
        font-size: 0.9375rem;
    }
    
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.widget-btn:focus {
    outline: 3px solid rgba(203, 12, 12, 0.5);
    outline-offset: 3px;
}

.whatsapp-btn:focus {
    outline: 3px solid rgba(37, 211, 102, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .widget-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .widget-btn,
    .widget-btn::before,
    .widget-icon,
    .whatsapp-btn i {
        animation: none;
        transition: none;
    }
    
    .widget-btn:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sticky-widgets {
        display: none !important;
    }
}
