/*
 * Therapist Advertisers Display - Professional Edition
 * Version: 2.1
 * Unique prefix: tad-
 * Design: Modern, clean, with enhanced image protection
 */

/* CSS Variables - Premium Color Palette */
:root {
    /* Primary Colors */
    --tad-primary-gradient: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    --tad-secondary-gradient: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    
    /* Card Styling */
    --tad-card-bg: #ffffff;
    --tad-card-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.1), 0 5px 12px -4px rgba(0, 0, 0, 0.05);
    --tad-card-hover-shadow: 0 30px 45px -10px rgba(102, 126, 234, 0.25), 0 8px 20px -6px rgba(0, 0, 0, 0.1);
    --tad-card-border: none;
    --tad-card-radius: 24px;
    
    /* Text Colors */
    --tad-text-primary: #1a1f36;
    --tad-text-secondary: #4a5568;
    --tad-text-muted: #718096;
    --tad-text-light: #a0aec0;
    
    /* Accent Colors */
    --tad-accent-call: linear-gradient(145deg, #2ecc71, #27ae60);
    --tad-accent-whatsapp: linear-gradient(145deg, #25d366, #128C7E);
    --tad-accent-vip: linear-gradient(145deg, #f39c12, #e67e22);
    --tad-accent-hover: linear-gradient(145deg, #3498db, #2980b9);
    
    /* Borders & Effects */
    --tad-border-light: rgba(255, 255, 255, 0.1);
    --tad-border-color: #edf2f7;
    --tad-focus-ring: 0 0 0 3px rgba(102, 126, 234, 0.1);
    
    /* Spacing */
    --tad-container-width: 680px;
    --tad-card-padding: 28px;
    --tad-gap: 24px;
    
    /* Image Protection */
    --tad-protection-level: 100;
    
    /* Viewport */
    --tad-vh: 1vh;
}

/* ===== PAGE CONTAINER - DESKTOP FIRST ===== */
.tad-therapist-page {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--tad-secondary-gradient) !important;
    min-height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    line-height: 1.6 !important;
    color: var(--tad-text-primary) !important;
}

/* Narrow, Centered Container - Fast Loading */
.tad-site-wrapper {
    max-width: var(--tad-container-width) !important;
    width: 100% !important;
    margin: 30px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.tad-site-main {
    width: 100% !important;
}

.tad-page-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--tad-gap) !important;
}

/* ===== THERAPIST CARDS - MODERN GLASS MORPHISM ===== */
.tad-therapist-card {
    background: var(--tad-card-bg) !important;
    border-radius: var(--tad-card-radius) !important;
    box-shadow: var(--tad-card-shadow) !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    transition: all 0.4s cubic-bezier(0.15, 0.75, 0.4, 1) !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.tad-therapist-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--tad-card-hover-shadow) !important;
    border-color: rgba(102, 126, 234, 0.2) !important;
}

/* Premium Decorative Element */
.tad-therapist-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: var(--tad-primary-gradient) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.tad-therapist-card:hover::before {
    opacity: 1 !important;
}

/* ===== CARD CONTENT LAYOUT ===== */
.tad-card-content {
    display: flex !important;
    padding: var(--tad-card-padding) !important;
    gap: 28px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* ===== PROFILE SECTION - WITH ENHANCED IMAGE PROTECTION ===== */
.tad-profile-section {
    flex: 0 0 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Image Protection Container */
.tad-image-protection-layer {
    position: relative !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0 15px 25px -8px rgba(0, 0, 0, 0.2) !important;
}

/* Profile Photo - Complete Protection */
.tad-profile-photo {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid white !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.5s ease, border-color 0.3s ease !important;
    display: block !important;
    
    /* MAXIMUM PROTECTION - Multiple Layers */
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    
    /* Additional Protection Layers */
    content-visibility: auto !important;
    contain: paint !important;
}

/* Invisible Overlay for Extra Protection */
.tad-image-protection-layer::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: transparent !important;
    z-index: 10 !important;
    cursor: default !important;
}

.tad-profile-photo:hover {
    transform: scale(1.05) !important;
    border-color: #667eea !important;
}

/* ===== DETAILS SECTION ===== */
.tad-details-section {
    flex: 1 !important;
    min-width: 0 !important;
}

.tad-therapist-name {
    color: var(--tad-text-primary) !important;
    font-size: 1.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    background: var(--tad-primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.tad-service-desc {
    color: var(--tad-text-secondary) !important;
    font-size: 1rem !important;
    margin-bottom: 20px !important;
    line-height: 1.7 !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid var(--tad-border-color) !important;
    font-weight: 400 !important;
}

/* ===== META INFORMATION - ELEGANT GRID ===== */
.tad-therapist-meta {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 28px !important;
    background: #fafbfc !important;
    padding: 16px !important;
    border-radius: 16px !important;
}

.tad-meta-item {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    padding: 4px 0 !important;
}

.tad-label {
    font-weight: 600 !important;
    color: var(--tad-text-muted) !important;
    font-size: 0.85rem !important;
    min-width: 70px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.tad-value {
    color: var(--tad-text-primary) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

/* Targets the 4th meta item in the grid (adjust the number if Price is in a different spot) */
.tad-meta-item:nth-child(4) .tad-value {
    color: #e67e22 !important;
    font-weight: 700 !important;
}

/* ===== ACTION BUTTONS - PREMIUM DESIGN ===== */
.tad-action-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    margin-top: 8px !important;
}

.tad-btn {
    padding: 14px 12px !important;
    text-align: center !important;
    border-radius: 40px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: white !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Button Icons - Using Unicode/Emoji for compatibility */
.tad-btn::before {
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.tad-btn-call::before {
    content: "📞" !important;
}

.tad-btn-whatsapp::before {
    content: "💬" !important;
}

.tad-btn-vip::before {
    content: "⭐" !important;
}

/* Button Gradients */
.tad-btn-call {
    background: var(--tad-accent-call) !important;
}

.tad-btn-whatsapp {
    background: var(--tad-accent-whatsapp) !important;
}

.tad-btn-vip {
    background: var(--tad-accent-vip) !important;
}

/* Hover Effects */
.tad-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2) !important;
}

.tad-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Shine Effect */
.tad-btn::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -60% !important;
    width: 200% !important;
    height: 200% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s cubic-bezier(0.3, 1, 0.8, 1) !important;
    opacity: 0 !important;
}

.tad-btn:hover::after {
    left: 100% !important;
    opacity: 1 !important;
}

/* ===== NO LISTINGS MESSAGE ===== */
.tad-no-listings {
    text-align: center !important;
    padding: 60px 40px !important;
    color: var(--tad-text-muted) !important;
    font-size: 1.2rem !important;
    background: white !important;
    border-radius: var(--tad-card-radius) !important;
    box-shadow: var(--tad-card-shadow) !important;
    font-weight: 500 !important;
}

/* ===== IFRAME LOCK ELEMENT ===== */
.tad-iframe-lock {
    height: 1px !important;
    width: 1px !important;
    visibility: hidden !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* ===== ENHANCED RIGHT-CLICK PROTECTION ===== */
/* Prevent image dragging */
img.tad-profile-photo {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* Protection overlay */
.tad-profile-section {
    position: relative !important;
}

.tad-profile-section::before {
    display: none !important;
}

/* ===== DESKTOP OPTIMIZATIONS (≥769px) ===== */
@media (min-width: 769px) {
    .tad-site-wrapper {
        margin: 40px auto !important;
    }
    
    .tad-therapist-card {
        transition: all 0.4s cubic-bezier(0.15, 0.75, 0.4, 1) !important;
    }
    
    .tad-therapist-name {
        font-size: 1.85rem !important;
    }
    
    .tad-service-desc {
        font-size: 1.05rem !important;
    }
    
    .tad-btn {
        padding: 16px 16px !important;
        font-size: 1rem !important;
    }
    
    .tad-profile-photo {
        width: 140px !important;
        height: 140px !important;
    }
    
    .tad-profile-section {
        flex: 0 0 160px !important;
    }
}

/* ===== MOBILE OPTIMIZATIONS (≤768px) ===== */
@media (max-width: 768px) {
    .tad-site-wrapper {
        margin: 20px auto !important;
        padding: 0 16px !important;
    }
    
    .tad-card-content {
        flex-direction: column !important;
        padding: 24px !important;
        gap: 20px !important;
    }
    
    .tad-profile-section {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
    
    .tad-image-protection-layer,
    .tad-profile-photo {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto !important;
    }
    
    .tad-therapist-name {
        font-size: 1.6rem !important;
        text-align: center !important;
    }
    
    .tad-service-desc {
        text-align: center !important;
        font-size: 1rem !important;
    }
    
    .tad-therapist-meta {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 20px !important;
        margin-bottom: 24px !important;
    }
    
    .tad-meta-item {
        justify-content: space-between !important;
        padding: 6px 0 !important;
        border-bottom: 1px dashed var(--tad-border-color) !important;
    }
    
    .tad-meta-item:last-child {
        border-bottom: none !important;
    }
    
    .tad-label {
        font-size: 0.9rem !important;
    }
    
    .tad-value {
        font-size: 1rem !important;
        text-align: right !important;
    }
    
    .tad-action-buttons {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .tad-btn {
        padding: 16px 16px !important;
        font-size: 1rem !important;
        justify-content: center !important;
        border-radius: 50px !important;
    }
    
    .tad-btn::before {
        font-size: 1.3rem !important;
    }
}

/* ===== SMALL MOBILE DEVICES (≤480px) ===== */
@media (max-width: 480px) {
    .tad-site-wrapper {
        padding: 0 12px !important;
        margin: 16px auto !important;
    }
    
    .tad-card-content {
        padding: 20px !important;
    }
    
    .tad-image-protection-layer,
    .tad-profile-photo {
        width: 120px !important;
        height: 120px !important;
    }
    
    .tad-therapist-name {
        font-size: 1.4rem !important;
    }
    
    .tad-service-desc {
        font-size: 0.95rem !important;
        padding-bottom: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .tad-therapist-meta {
        padding: 16px !important;
    }
    
    .tad-btn {
        padding: 14px 14px !important;
        font-size: 0.95rem !important;
    }
}

/* ===== ANDROID SPECIFIC FIXES ===== */
.tad-android-device {
    -webkit-overflow-scrolling: touch !important;
}

.tad-android-device .tad-btn {
    padding: 16px 16px !important;
}

/* ===== iOS SAFARI SPECIFIC FIXES ===== */
@supports (-webkit-touch-callout: none) {
    .tad-therapist-page {
        min-height: -webkit-fill-available !important;
    }
    
    .tad-profile-photo {
        -webkit-touch-callout: none !important;
    }
    
    .tad-btn {
        padding: 16px 16px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
}

/* ===== ENHANCED IMAGE PROTECTION - EXTRA LAYERS ===== */
/* Disable right click on images */
img.tad-profile-photo {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Prevent context menu on images */
.tad-profile-section {
    -webkit-touch-callout: none;
}

/* Protection for long-press on mobile */
.tad-profile-photo {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes tadCardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tad-therapist-card {
    animation: tadCardFadeIn 0.6s cubic-bezier(0.2, 0.9, 0.4, 1) forwards !important;
}

.tad-therapist-card:nth-child(2) {
    animation-delay: 0.1s !important;
}

.tad-therapist-card:nth-child(3) {
    animation-delay: 0.2s !important;
}

.tad-therapist-card:nth-child(4) {
    animation-delay: 0.3s !important;
}

.tad-therapist-card:nth-child(5) {
    animation-delay: 0.4s !important;
}

/* ===== LOADING OPTIMIZATION ===== */
.tad-profile-photo {
    content-visibility: auto !important;
    contain: paint !important;
}

/* ===== HIGH RESOLUTION DISPLAYS ===== */
@media (min-width: 1400px) {
    .tad-site-wrapper {
        max-width: 720px !important;
    }
    
    .tad-therapist-card {
        border-radius: 28px !important;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .tad-therapist-card,
    .tad-btn,
    .tad-profile-photo {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .tad-therapist-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .tad-btn {
        border: 1px solid #333 !important;
        color: black !important;
        background: white !important;
    }
}