/**
 * DentaCMS - Elementor Widgets Frontend Styles
 * Clinical Precision Aesthetics
 */

:root {
    --dentacms-primary: #006194;
    --dentacms-primary-dark: #004b73;
    --dentacms-secondary: #00a878;
    --dentacms-surface: #ffffff;
    --dentacms-bg-light: #f8fafc;
    --dentacms-text-main: #131b2e;
    --dentacms-text-muted: #64748b;
    --dentacms-border: #e2e8f0;
    --dentacms-radius: 12px;
    --dentacms-shadow: 0 10px 25px -5px rgba(0, 97, 148, 0.08), 0 8px 10px -6px rgba(0, 97, 148, 0.04);
}

/* ==========================================================================
   1. Hero Widget
   ========================================================================== */
.dentacms-hero-wrapper {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #f0f7fb 0%, #e8f4fa 100%);
    border-radius: var(--dentacms-radius);
    overflow: hidden;
}
.dentacms-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.dentacms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 97, 148, 0.1);
    color: var(--dentacms-primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dentacms-hero-title {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--dentacms-text-main);
    margin: 0 0 20px 0;
}
.dentacms-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dentacms-text-muted);
    margin: 0 0 32px 0;
}
.dentacms-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.dentacms-btn-primary {
    background: var(--dentacms-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 97, 148, 0.25);
}
.dentacms-btn-primary:hover {
    background: var(--dentacms-primary-dark);
    transform: translateY(-2px);
}
.dentacms-btn-outline {
    background: #fff;
    color: var(--dentacms-primary);
    border: 2px solid var(--dentacms-primary);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.dentacms-btn-outline:hover {
    background: rgba(0, 97, 148, 0.05);
}
.dentacms-hero-image-wrap {
    position: relative;
    text-align: center;
}
.dentacms-hero-img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 35px -10px rgba(19, 27, 46, 0.15);
}

/* ==========================================================================
   2. About Doctor Widget
   ========================================================================== */
.dentacms-about-wrapper {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}
.dentacms-about-photo-wrap {
    position: relative;
}
.dentacms-about-photo {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--dentacms-shadow);
}
.dentacms-seal-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--dentacms-secondary);
}
.dentacms-about-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dentacms-text-main);
    margin: 0 0 10px 0;
}
.dentacms-about-specialty {
    font-size: 18px;
    color: var(--dentacms-primary);
    font-weight: 600;
    margin: 0 0 20px 0;
}
.dentacms-about-bio {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dentacms-text-muted);
    margin-bottom: 24px;
}
.dentacms-credentials-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.dentacms-credentials-list li {
    font-size: 14px;
    color: var(--dentacms-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* ==========================================================================
   3. Treatments Grid Widget
   ========================================================================== */
.dentacms-treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto;
}
.dentacms-treatment-card {
    background: #fff;
    border: 1px solid var(--dentacms-border);
    border-radius: var(--dentacms-radius);
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dentacms-treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dentacms-shadow);
    border-color: var(--dentacms-primary);
}
.dentacms-treatment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.dentacms-treatment-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 97, 148, 0.08);
    color: var(--dentacms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.dentacms-treatment-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--dentacms-secondary);
}
.dentacms-treatment-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dentacms-text-main);
    margin: 0 0 10px 0;
}
.dentacms-treatment-desc {
    font-size: 14px;
    color: var(--dentacms-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.dentacms-treatment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--dentacms-border);
    padding-top: 16px;
    font-size: 13px;
    color: var(--dentacms-text-muted);
}

/* ==========================================================================
   4. Before/After Interactive Slider Widget
   ========================================================================== */
.dentacms-ba-container {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}
.dentacms-ba-card {
    background: #fff;
    border-radius: var(--dentacms-radius);
    overflow: hidden;
    box-shadow: var(--dentacms-shadow);
    border: 1px solid var(--dentacms-border);
}
.dentacms-ba-slider-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    user-select: none;
}
.dentacms-ba-img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dentacms-ba-img-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 2;
}
.dentacms-ba-img-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.dentacms-ba-tag {
    position: absolute;
    top: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    z-index: 3;
    pointer-events: none;
}
.dentacms-ba-tag.before { left: 14px; background: rgba(0,0,0,0.6); }
.dentacms-ba-tag.after { right: 14px; background: var(--dentacms-primary); }
.dentacms-ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
}
.dentacms-ba-info {
    padding: 20px;
}
.dentacms-ba-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--dentacms-text-main);
}
.dentacms-ba-desc {
    font-size: 13px;
    color: var(--dentacms-text-muted);
    margin: 0;
}

/* ==========================================================================
   5. Booking System Widget
   ========================================================================== */
.dentacms-booking-card {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px -5px rgba(0,97,148,0.12);
    border: 1px solid var(--dentacms-border);
}
.dentacms-booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.dentacms-booking-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dentacms-text-muted);
}
.dentacms-booking-step-item.active {
    color: var(--dentacms-primary);
}
.dentacms-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dentacms-bg-light);
    border: 2px solid var(--dentacms-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.dentacms-booking-step-item.active .dentacms-step-circle {
    background: var(--dentacms-primary);
    color: #fff;
    border-color: var(--dentacms-primary);
}
.dentacms-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.dentacms-slot-btn {
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid var(--dentacms-border);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.dentacms-slot-btn:hover {
    border-color: var(--dentacms-primary);
    background: rgba(0, 97, 148, 0.04);
}
.dentacms-slot-btn.selected {
    background: var(--dentacms-primary);
    color: #fff;
    border-color: var(--dentacms-primary);
}

/* ==========================================================================
   6. FAQ Accordion Widget
   ========================================================================== */
.dentacms-faq-wrap {
    max-width: 800px;
    margin: 40px auto;
}
.dentacms-faq-item {
    background: #fff;
    border: 1px solid var(--dentacms-border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}
.dentacms-faq-question {
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dentacms-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.dentacms-faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dentacms-text-muted);
    display: none;
}
.dentacms-faq-item.open .dentacms-faq-answer {
    display: block;
}

/* ==========================================================================
   7. Blog Grid Widget
   ========================================================================== */
.dentacms-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto;
}
.dentacms-post-card {
    background: #fff;
    border-radius: var(--dentacms-radius);
    border: 1px solid var(--dentacms-border);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    transition: all 0.2s;
}
.dentacms-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dentacms-shadow);
}
.dentacms-post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.dentacms-post-content {
    padding: 24px;
}
.dentacms-post-date {
    font-size: 12px;
    color: var(--dentacms-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.dentacms-post-title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 12px 0;
    color: var(--dentacms-text-main);
}
.dentacms-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dentacms-text-muted);
    margin-bottom: 16px;
}

/* ==========================================================================
   8. Location & Contact Widget
   ========================================================================== */
.dentacms-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--dentacms-radius);
    border: 1px solid var(--dentacms-border);
    padding: 40px;
}
.dentacms-contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.dentacms-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 97, 148, 0.1);
    color: var(--dentacms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dentacms-hero-inner,
    .dentacms-about-wrapper,
    .dentacms-location-grid {
        grid-template-columns: 1fr;
    }
    .dentacms-hero-title {
        font-size: 32px;
    }
}
