/**
 * Doctors Widget Styles
 * 
 * @package Netrobit_Core
 */

/* Reset Elementor container padding */
.elementor-widget-netrobit-doctors {
    margin: 0;
    padding: 0;
}

.elementor-widget-netrobit-doctors .elementor-widget-container {
    padding: 0;
    margin: 0;
}

/* Grid Layout */
.netrobit-doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Doctor Card */
.netrobit-doctor-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

/* Doctor Image */
.netrobit-doctor-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.netrobit-doctor-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.netrobit-doctor-card:hover .netrobit-doctor-image img {
    transform: scale(1.05);
}

/* Social Icons Overlay */
.netrobit-doctor-social {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.netrobit-doctor-card:hover .netrobit-doctor-social {
    opacity: 1;
}

.netrobit-doctor-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--netrodent-primary, #161A2D);
    color: var(--netrodent-white, #ffffff);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.netrobit-doctor-social a:hover {
    background-color: var(--netrodent-accent, #316DFF);
    transform: scale(1.1);
}

.netrobit-doctor-social a i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style 1 - Solid White Card with Compact Typography */
.netrobit-doctors-style-1 .netrobit-doctor-card {
    background-color: #ffffff !important;
    border-radius: 1.2rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.netrobit-doctors-style-1 .netrobit-doctor-image {
    border-radius: 0 !important;
}

.netrobit-doctors-style-1 .netrobit-doctor-image img {
    border-radius: 0 !important;
    width: 100% !important;
}

.netrobit-doctors-style-1 .netrobit-doctor-info {
    padding: 15px 15px 20px !important;
    background-color: #ffffff !important;
    text-align: center !important;
}

.netrobit-doctors-style-1 .netrobit-doctor-name {
    color: #161A2D;
    margin: 0 0 2px 0;
    font-weight: 700;
}

.netrobit-doctors-style-1 .netrobit-doctor-specialty {
    font-size: 11px !important;
    color: #316DFF !important;
    font-weight: 600 !important;
}

/* ============================================
   STYLE 2 - Modern Card with Glassmorphism
   ============================================ */

/* Style 2: Card adjustments */
.netrobit-doctors-style-2 .netrobit-doctor-card {
    background: transparent;
    box-shadow: none;
    position: relative;
}

.netrobit-doctors-style-2 .netrobit-doctor-card:hover {
    transform: none;
    box-shadow: none;
}

/* Style 2: Image container */
.netrobit-doctors-style-2 .netrobit-doctor-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

/* Style 2: Image with subtle zoom on hover */
.netrobit-doctors-style-2 .netrobit-doctor-image img {
    border-radius: 1rem;
    transition: transform 0.5s ease;
}

.netrobit-doctors-style-2 .netrobit-doctor-card:hover .netrobit-doctor-image img {
    transform: scale(1.03);
}

/* Style 2: Info section - Sleek Gradient Overlay */
.netrobit-doctors-style-2 .netrobit-doctor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    text-align: left;
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

.netrobit-doctors-style-2 .netrobit-doctor-card:hover .netrobit-doctor-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    transform: none;
}

/* Style 2: Name styling */
.netrobit-doctors-style-2 .netrobit-doctor-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-align: left;
}

/* Style 2: Specialty */
.netrobit-doctors-style-2 .netrobit-doctor-specialty {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: left;
    padding-left: 0;
}

.netrobit-doctors-style-2 .netrobit-doctor-specialty::before {
    display: none;
}

/* Style 2: Social icons - elegant horizontal strip */
.netrobit-doctors-style-2 .netrobit-doctor-social {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    border-radius: 0;
    left: auto;
    right: auto;
    top: auto;
}

.netrobit-doctors-style-2 .netrobit-doctor-card:hover .netrobit-doctor-social {
    transform: none;
    bottom: auto;
    top: auto;
    opacity: 1;
}

/* Style 2: Compact social icons */
.netrobit-doctors-style-2 .netrobit-doctor-social a {
    width: 32px;
    height: 32px;
    font-size: 13px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.netrobit-doctors-style-2 .netrobit-doctor-social a:hover {
    background: linear-gradient(135deg, #4169e1 0%, #6366f1 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .netrobit-doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .netrobit-doctor-name {
        /* Handled by Elementor */
    }

    .netrobit-doctor-social a {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .netrobit-doctors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .netrobit-doctor-info {
        padding: 10px 4px !important;
        /* İç boşluğu minimuma indirdim */
    }

    .netrobit-doctor-name {
        /* Handled by Elementor dynamic CSS */
        line-height: inherit;
    }

    .netrobit-doctor-specialty {
        font-size: 13px;
    }

    .netrobit-doctor-social a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Show social icons on mobile without hover (Style 1) */
    .netrobit-doctors-style-1 .netrobit-doctor-social {
        opacity: 1;
    }

    /* Style 2 adjustments */
    .netrobit-doctors-style-2 .netrobit-doctor-info {
        padding: 14px 16px;
    }

    .netrobit-doctors-style-2 .netrobit-doctor-name {
        /* Handled by Elementor dynamic CSS */
    }
}

@media (max-width: 480px) {
    .netrobit-doctor-card {
        border-radius: 15px;
    }

    .netrobit-doctor-image img {
        border-radius: 15px;
    }

    .netrobit-doctor-name {
        /* Handled by Elementor dynamic CSS */
    }

    .netrobit-doctor-info {
        padding: 8px 3px !important;
    }

    .netrobit-doctor-specialty {
        font-size: 12px;
    }

    /* Style 1 mobile adjustments */
    .netrobit-doctors-style-1 .netrobit-doctor-social {
        right: 15px;
        gap: 8px;
    }

    .netrobit-doctors-style-1 .netrobit-doctor-social a {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    /* Style 2 mobile adjustments */
    .netrobit-doctors-style-2 .netrobit-doctor-info {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .netrobit-doctors-style-2 .netrobit-doctor-name {
        /* Handled by Elementor dynamic CSS */
    }

    .netrobit-doctors-style-2 .netrobit-doctor-specialty {
        font-size: 11px;
        padding-left: 10px;
    }

    .netrobit-doctors-style-2 .netrobit-doctor-specialty::before {
        width: 3px;
        height: 12px;
    }

    .netrobit-doctors-style-2 .netrobit-doctor-social {
        margin-top: 10px;
        padding-top: 10px;
        gap: 6px;
    }

    .netrobit-doctors-style-2 .netrobit-doctor-social a {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 6px;
    }
}