/**
 * 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;
    }
}
