/* ===============================================
   BESTMEDICURES - Modal Styles
   =============================================== */

/* Modal Logo Container */
.modal-logo-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* Modal Logo Styling */
.modal-logo {
    max-width: 250px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ===============================================
   Responsive Design
   =============================================== */

/* Tablet Styles */
@media (max-width: 768px) {
    .modal-logo {
        max-width: 200px;
        max-height: 100px;
    }
    .modal-logo-container {
        padding: 15px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .modal-logo {
        max-width: 180px;
        max-height: 90px;
    }
    .modal-logo-container {
        padding: 10px;
    }
}

/* ===============================================
   Additional Modal Enhancements
   =============================================== */

/* Modal backdrop customization */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal content styling */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Modal header customization */
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
}

/* Modal close button styling */
.modal-header .btn-close {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Advertise popup specific styling */
.advertize-popup .modal-content {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.advertize-popup .modal-body {
    text-align: center;
    padding: 2rem;
}

/* Offer text styling */
.offer-text {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* Claim button styling */
.btn-claim {
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===============================================
   Modal Animations
   =============================================== */

/* Shake animation for modal */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-3px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(3px);
    }
}

.modal.shake .modal-dialog {
    animation: shake 0.5s ease-in-out;
}

/* Pulse animation for offer text */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal fade-in enhancement */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* ===============================================
   Accessibility Improvements
   =============================================== */

/* Focus states */
.modal-content:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modal-content {
        border: 2px solid #000;
    }

    .advertize-popup .modal-content {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }

    .offer-text {
        animation: none;
    }

    .modal.shake .modal-dialog {
        animation: none;
    }

    .btn-claim:hover {
        transform: none;
    }
}
