/**
 * Team Members Pro - Public Styles
 * 
 * @package Team_Members_Pro
 */

/* ==========================================================================
   Team Wrapper & Layouts
   ========================================================================== */

.tmp-team-wrapper {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

/* Grid Layouts */
.tmp-layout-grid.tmp-columns-1 { grid-template-columns: 1fr; }
.tmp-layout-grid.tmp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.tmp-layout-grid.tmp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.tmp-layout-grid.tmp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.tmp-layout-grid.tmp-columns-5 { grid-template-columns: repeat(5, 1fr); }
.tmp-layout-grid.tmp-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* List Layout */
.tmp-layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tmp-layout-grid.tmp-columns-4,
    .tmp-layout-grid.tmp-columns-5,
    .tmp-layout-grid.tmp-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tmp-layout-grid.tmp-columns-3,
    .tmp-layout-grid.tmp-columns-4,
    .tmp-layout-grid.tmp-columns-5,
    .tmp-layout-grid.tmp-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tmp-layout-grid { 
        grid-template-columns: 1fr !important; 
    }
}

/* ==========================================================================
   Default Card Style
   ========================================================================== */

.tmp-team-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmp-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Team Image */
.tmp-team-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.tmp-team-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tmp-team-card:hover .tmp-team-image img {
    transform: scale(1.05);
}

/* Team Content */
.tmp-team-content {
    padding: 20px;
}

.tmp-team-name {
    font-size: 1.5em;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.3;
}

.tmp-team-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tmp-team-name a:hover {
    color: #007bff;
}

.tmp-team-designation {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: 500;
}

.tmp-team-practices {
    margin: 10px 0;
}

.tmp-practice-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    margin: 2px 5px 2px 0;
    color: #555;
}

.tmp-team-intro {
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
    margin: 15px 0;
}

.tmp-team-intro p:last-child {
    margin-bottom: 0;
}

/* Contact Buttons */
.tmp-team-contact {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tmp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    color: #333;
    background: #fff;
}

.tmp-contact-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
}

.tmp-contact-btn .tmp-icon {
    font-size: 1.1em;
}

.tmp-view-profile {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tmp-view-profile:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ==========================================================================
   Featured Card Style
   ========================================================================== */

.tmp-featured-card {
    border: 2px solid #007bff;
    position: relative;
}

.tmp-experience-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.tmp-team-contact-featured {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.tmp-contact-btn-featured {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.tmp-contact-btn-featured:hover {
    background: #007bff;
    color: #fff;
}

.tmp-view-profile-featured {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.tmp-view-profile-featured:hover {
    background: #0056b3;
}

/* ==========================================================================
   List Card Style
   ========================================================================== */

.tmp-list-card {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.tmp-team-image-list {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 50%;
}

.tmp-team-image-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmp-team-content-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tmp-team-header-list {
    margin-bottom: 10px;
}

.tmp-team-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 600px) {
    .tmp-list-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tmp-team-image-list {
        margin: 0 auto;
    }
    
    .tmp-team-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Minimal Card Style
   ========================================================================== */

.tmp-minimal-card {
    text-align: center;
    padding: 20px;
}

.tmp-team-image-minimal {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 50%;
}

.tmp-team-image-minimal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmp-team-content-minimal h4 {
    font-size: 1.1em;
    margin: 0 0 5px;
}

.tmp-team-content-minimal .tmp-team-designation {
    font-size: 0.85em;
    margin-bottom: 10px;
}

.tmp-email-link {
    font-size: 0.85em;
    color: #007bff;
    text-decoration: none;
}

.tmp-email-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Single Team Member Page
   ========================================================================== */

.tmp-single-member {
    max-width: 1200px;
    margin: 0 auto;
}

.tmp-member-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tmp-member-photo-large {
    position: sticky;
    top: 20px;
}

.tmp-member-photo-large img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tmp-member-title {
    font-size: 2.5em;
    margin: 0 0 10px;
    line-height: 1.2;
}

.tmp-member-designation {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.tmp-member-experience-years {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
}

.tmp-member-practices-list {
    margin-bottom: 20px;
    font-size: 0.95em;
}

.tmp-member-practices-list strong {
    display: block;
    margin-bottom: 5px;
}

.tmp-member-contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tmp-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tmp-contact-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.tmp-member-body {
    line-height: 1.8;
}

.tmp-member-body section {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tmp-member-body h2 {
    font-size: 1.8em;
    margin: 0 0 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.tmp-member-body p {
    margin-bottom: 15px;
}

.tmp-member-body ul {
    list-style: none;
    padding: 0;
}

.tmp-member-body ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tmp-member-body ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Responsive - Single Page */
@media (max-width: 768px) {
    .tmp-member-header {
        grid-template-columns: 1fr;
    }
    
    .tmp-member-photo-large {
        position: static;
    }
    
    .tmp-member-title {
        font-size: 2em;
    }
    
    .tmp-member-body section {
        padding: 20px;
    }
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

.archive-page-header {
    margin-bottom: 40px;
    text-align: center;
}

.archive-page-header .page-title {
    font-size: 2.5em;
    margin: 0 0 15px;
}

.taxonomy-description {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.tmp-clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Print Styles */
@media print {
    .tmp-team-contact,
    .tmp-view-profile,
    .tmp-contact-button {
        display: none;
    }
}

/* ==========================================================================
   Image Shape Options  (tmp-img-square / rounded / circle)
   ========================================================================== */

.tmp-img-square .tmp-member-photo,
.tmp-img-square img.tmp-member-photo {
    border-radius: 0;
}

.tmp-img-rounded .tmp-member-photo,
.tmp-img-rounded img.tmp-member-photo {
    border-radius: 12px;
}

.tmp-img-circle .tmp-member-photo,
.tmp-img-circle img.tmp-member-photo {
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Ensure circle works on the wrapper too */
.tmp-img-circle {
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
}

/* ==========================================================================
   Icon / Contact Button Size Options  (tmp-icon-small / medium / large)
   ========================================================================== */

.tmp-icon-small .tmp-contact-btn,
.tmp-icon-small .tmp-contact-btn-featured {
    font-size: 0.78em;
    padding: 4px 8px;
    gap: 4px;
}
.tmp-icon-small .tmp-icon {
    font-size: 0.9em;
}

.tmp-icon-medium .tmp-contact-btn,
.tmp-icon-medium .tmp-contact-btn-featured {
    font-size: 0.9em;
    padding: 6px 12px;
    gap: 6px;
}
.tmp-icon-medium .tmp-icon {
    font-size: 1em;
}

.tmp-icon-large .tmp-contact-btn,
.tmp-icon-large .tmp-contact-btn-featured {
    font-size: 1.05em;
    padding: 10px 18px;
    gap: 8px;
}
.tmp-icon-large .tmp-icon {
    font-size: 1.3em;
}

/* ==========================================================================
   Icon Style Options  (tmp-icons-colorful / tmp-icons-flat)
   ========================================================================== */

/* Colorful Icons - Default emoji style */
.tmp-icons-colorful .tmp-icon {
    /* No additional styling needed for emojis */
}

/* Flat/Simple Icons - Monochrome style */
.tmp-icons-flat .tmp-contact-btn {
    color: inherit;
}

.tmp-icons-flat .tmp-icon-flat {
    display: inline-block;
    font-style: normal;
    font-weight: 600;
}

/* Override emoji display when flat is selected */
.tmp-icons-flat .tmp-btn-phone .tmp-icon:not(.tmp-icon-flat),
.tmp-icons-flat .tmp-btn-email .tmp-icon:not(.tmp-icon-flat),
.tmp-icons-flat .tmp-btn-whatsapp .tmp-icon:not(.tmp-icon-flat),
.tmp-icons-flat .tmp-btn-linkedin .tmp-icon:not(.tmp-icon-flat) {
    display: none;
}

/* ==========================================================================
   Button Styles  (tmp-btn-primary / secondary / link)
   ========================================================================== */

.tmp-view-profile {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

/* Primary Button (Filled) */
.tmp-btn-primary {
    background-color: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
    padding: 10px 24px;
    border-radius: 4px;
}

.tmp-btn-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Secondary Button (Outlined) */
.tmp-btn-secondary {
    background-color: transparent;
    color: #0073aa;
    border-color: #0073aa;
    padding: 10px 24px;
    border-radius: 4px;
}

.tmp-btn-secondary:hover {
    background-color: #0073aa;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

/* Link Button (Text Only) */
.tmp-btn-link {
    background-color: transparent;
    color: #0073aa;
    border: none;
    padding: 8px 0;
    text-decoration: underline;
}

.tmp-btn-link:hover {
    color: #005a87;
    text-decoration: none;
}

/* Button Sizes */
.tmp-btn-small {
    font-size: 0.85em;
    padding: 6px 16px;
}

.tmp-btn-medium {
    font-size: 0.95em;
    padding: 10px 24px;
}

.tmp-btn-large {
    font-size: 1.1em;
    padding: 14px 32px;
}

/* Link button size adjustments */
.tmp-btn-link.tmp-btn-small {
    padding: 4px 0;
}

.tmp-btn-link.tmp-btn-medium {
    padding: 8px 0;
}

.tmp-btn-link.tmp-btn-large {
    padding: 12px 0;
}

/* ==========================================================================
   DESIGNATION STYLES  (tmp-desig-normal / italic / uppercase / badge)
   ========================================================================== */

.tmp-team-designation {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Normal — inherits base */
.tmp-desig-normal   { /* base */ }

.tmp-desig-italic   { font-style: italic; }

.tmp-desig-uppercase {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .82em;
}

.tmp-desig-badge {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 3px 14px;
    font-size: .8em;
    font-weight: 600;
    letter-spacing: .04em;
}

/* ==========================================================================
   ICON BORDER VARIANTS  (tmp-border-default / none / thin / thick / rounded / circle)
   ========================================================================== */

/* default — keep original appearance */
.tmp-border-default {
    /* inherits from .tmp-contact-btn */
}

/* no border */
.tmp-border-none {
    border: none !important;
    background: transparent !important;
    padding: 4px 8px !important;
}

/* thin border */
.tmp-border-thin {
    border: 1px solid #dddddd !important;
    border-radius: 4px;
    padding: 6px 10px;
}
.tmp-border-thin:hover {
    border-color: transparent !important;
}

/* thick border */
.tmp-border-thick {
    border: 2px solid #dddddd !important;
    border-radius: 4px;
    padding: 6px 10px;
}
.tmp-border-thick:hover {
    border-color: transparent !important;
}

/* rounded pill border */
.tmp-border-rounded {
    border: 1px solid #dddddd !important;
    border-radius: 50px !important;
    padding: 6px 14px !important;
}
.tmp-border-rounded:hover {
    border-color: transparent !important;
}

/* circle border — icon only, equal padding */
.tmp-border-circle {
    border: 1px solid #dddddd !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.tmp-border-circle:hover {
    border-color: transparent !important;
}

/* When icon_only mode + circle border, hide label */
.tmp-border-circle .tmp-label { display: none !important; }

/* ==========================================================================
   CUSTOM IMAGE SIZE — ensures shape still works with inline-sized images
   ========================================================================== */

/* Square — no radius override needed (default) */
.tmp-img-square img.tmp-member-photo[style] {
    border-radius: 0;
}

/* Rounded */
.tmp-img-rounded img.tmp-member-photo[style] {
    border-radius: 12px;
}

/* Circle — also clip the wrapper */
.tmp-img-circle img.tmp-member-photo[style] {
    border-radius: 50%;
}
.tmp-img-circle {
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
}

/* ==========================================================================
   RESPONSIVE — Tablet & Mobile (scoped CSS generated inline by PHP)
   Additional fallbacks below
   ========================================================================== */

/* Tablet: 768–1024px */
@media (max-width: 1024px) and (min-width: 768px) {
    .tmp-team-contact {
        gap: 8px;
    }
    .tmp-border-circle {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Mobile: < 768px */
@media (max-width: 767px) {

    .tmp-team-card {
        overflow: hidden;
    }

    /* Default mobile centre-align for card content
       (overridden by scoped PHP-generated CSS) */
    .tmp-team-contact {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Designation badge responsive */
    .tmp-desig-badge {
        font-size: .75em;
    }

    /* Work areas / bio text smaller */
    .tmp-team-work-areas,
    .tmp-team-intro {
        font-size: .88em;
    }

    /* Icon buttons narrower on mobile */
    .tmp-contact-btn {
        padding: 6px 10px;
        font-size: .85em;
    }

    .tmp-border-circle {
        width: 32px !important;
        height: 32px !important;
    }

    /* List card stacks on mobile */
    .tmp-list-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tmp-team-image-list {
        margin: 0 auto;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .tmp-contact-btn {
        padding: 5px 8px;
        font-size: .8em;
    }
    .tmp-border-rounded {
        padding: 5px 10px !important;
    }
}
