/* Darmankade Ads - Public Styles */

/* ===== STICKY ADS ===== */
.drmnkd-sticky-ad {
    position: fixed;
    z-index: 9999;
    width: 100%;
    background: #ffffff91;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
}

.drmnkd-sticky-top {
    top: 0;
    left: 0;
    right: 0;
}

.drmnkd-sticky-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.drmnkd-sticky-content {
    position: relative;
    padding: 15px 15px;
    max-width: 1145px;
    width: 100%;
    height: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drmnkd-sticky-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 35px;
    padding: 0;
    margin-left: 0;
    position: absolute;
    line-height: 1.5em;
    width: 30px;
    top: -30px;
    left: 0px;
    height: 30px;
}

.drmnkd-sticky-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ===== POPUP ADS ===== */
.drmnkd-popup-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drmnkd-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.drmnkd-popup-content {
    position: relative;
    background: #fff;
    border-radius: 0;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.drmnkd-popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 99999;
}

.drmnkd-popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ===== CONTENT ADS (BEFORE/AFTER) ===== */
.drmnkd-content-ad {
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    position: relative;
    contain: layout paint;
}

.drmnkd-content-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.drmnkd-content-ad a {
    text-decoration: none;
    color: inherit;
}

/* ===== IN-TEXT ADS ===== */
.drmnkd-intext-ad {
    display: block;
    contain: layout paint;
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .drmnkd-sticky-content {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .drmnkd-popup-content {
        padding: 20px;
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .drmnkd-content-ad {
        margin: 20px 0;
        padding: 15px;
    }
    
    .drmnkd-sticky-close {
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .drmnkd-sticky-content {
        padding: 10px;
    }
    
    .drmnkd-popup-content {
        padding: 0;
        margin: 15px;
    }
    
    .drmnkd-content-ad {
        padding: 12px;
    }
}

/* ===== ANIMATIONS ===== */
.drmnkd-sticky-ad {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.drmnkd-sticky-bottom {
    animation: slideInBottom 0.3s ease-out;
}

@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== ACCESSIBILITY ===== */
.drmnkd-sticky-close:focus,
.drmnkd-popup-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .drmnkd-sticky-ad,
    .drmnkd-popup-ad,
    .drmnkd-content-ad,
    .drmnkd-intext-ad {
        display: none !important;
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    .drmnkd-sticky-ad {
        border: 2px solid #000;
    }
    
    .drmnkd-popup-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .drmnkd-content-ad {
        border: 2px solid #000;
        background: #fff;
    }
    
    .drmnkd-intext-ad {
        border: 2px solid #000;
        background: #fff;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    .drmnkd-sticky-ad,
    .drmnkd-popup-content,
    .drmnkd-intext-ad {
        animation: none;
        transition: none;
    }
}


/* ===== SPECIALITY PROVIDERS BANNERS ===== */
.drmnkd-speciality-providers {
    background: linear-gradient(87.45deg, #0E536E 2.13%, #56C7F3 135.23%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    contain: layout paint;
    min-height: 168px;
}

.drmnkd-speciality-providers .drmnkd-speciality-heading {
    border-right: 2px solid white;
    padding-right: 10px;
}

.drmnkd-speciality-providers  .drmnkd-speciality-heading > span {
    color: white; 
}


.drmnkd-speciality-provider-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-evenly;
}

.drmnkd-speciality-provider-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 30%;
}

.drmnkd-speciality-provider-header {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 10px;
}
.drmnkd-speciality-provider-header .drmnkd-speciality-provider-avatar img {
    width: 50px;
    height: 50px;
    max-width: 50px !important;
    border-radius: 50%;
    border: 2px solid rgba(243, 130, 86, 1);
    object-fit: cover;
}

.drmnkd-speciality-provider-header div.drmnkd-speciality-provider-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drmnkd-speciality-provider-header div.drmnkd-speciality-provider-info .drmnkd-speciality-provider-rating {
    font-size: 14px;
}

.drmnkd-speciality-provider-header div.drmnkd-speciality-provider-info .drmnkd-speciality-provider-meta {
    color: rgba(156, 163, 175, 1);
    font-size: 12px;
    font-weight: 500;   
}

.drmnkd-speciality-provider-header div.drmnkd-speciality-provider-info .drmnkd-speciality-provider-meta {

}

.drmnkd-speciality-provider-card .drmnkd-speciality-provider-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drmnkd-speciality-provider-card .drmnkd-speciality-provider-details .drmnkd-speciality-provider-city {
    background-color: rgba(216, 249, 255, 1);
    color: rgba(63, 100, 106, 1);
    padding: 5px 10px;
    border-radius: 50px;
    width: fit-content;
    font-size: 14px;
}

.drmnkd-speciality-provider-card .drmnkd-speciality-provider-details .drmnkd-speciality-provider-link {
    background-color: rgba(86, 199, 243, 1);
    border-radius: 10px;
    color: white;
    text-align: center;
    width: 100%;
    padding: 8px;
}

@media (max-width: 768px) { 
    .drmnkd-speciality-provider-card .drmnkd-speciality-provider-details .drmnkd-speciality-provider-city {
        display: none;
    }

    .drmnkd-speciality-provider-header,
    .drmnkd-speciality-provider-header .drmnkd-speciality-provider-info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .drmnkd-speciality-provider-card {
        padding: 10px 12px;
    }

    .drmnkd-speciality-provider-header .drmnkd-speciality-provider-avatar img {
       width: 70px;
       height: 70px;
       max-width: 70px !important;
    }

}
