/**
 * Frontend Styles
 * Save as: assets/frontend.css
 */

 .tmmd-directory-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters Section */
.tmmd-filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tmmd-filters {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.tmmd-filter-group {
    flex: 1;
    min-width: 200px;
}

.tmmd-filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.tmmd-filter-group label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #555;
}

.tmmd-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

.tmmd-filter-select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.tmmd-btn-reset {
    padding: 11px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: #555;
    height: 43px;
    vertical-align: bottom;
    margin-top: 26px;
}

.tmmd-btn-reset:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.tmmd-btn-reset .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* View Toggle Buttons */
.tmmd-view-toggles {
display: flex;
    gap: 0px;
    background: #ffffff;
    padding: 0px;
    border-radius: 0px;
    margin-top: 0px;
}
.tmmd-member-info {
    padding: 16px;
    text-align: center;
}
.tmmd-view-btn {
    padding: 10px 15px;
    background: transparent;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.tmmd-view-btn:hover {
   
}

.tmmd-view-btn.active {
    background: #722833;
    color: #fff;
   
}

.tmmd-view-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Loading */
.tmmd-loading {
    text-align: center;
    padding: 60px 20px;
}

.tmmd-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Info */
.tmmd-results-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* Block View */
.tmmd-block-view {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.tmmd-block-view[data-cols="2"] { grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); }
.tmmd-block-view[data-cols="3"] { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tmmd-block-view[data-cols="4"] { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tmmd-block-view[data-cols="5"] { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tmmd-block-view[data-cols="6"] { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tmmd-block-view[data-cols="7"] { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tmmd-block-view[data-cols="8"] { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.tmmd-member-card {
background: #fff;
    border-radius: 0px;
    overflow: hidden;
    /* box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e2e2;
}

.tmmd-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tmmd-member-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.tmmd-member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.tmmd-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.tmmd-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.tmmd-modal-close:hover {
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

.tmmd-modal-close .dashicons {
    color: #fff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.tmmd-modal-body {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
}

.tmmd-modal-image {
    background: #f5f5f5;
    position: relative;
}

.tmmd-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmmd-modal-details {
    padding: 40px;
}

.tmmd-detail-row {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.tmmd-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tmmd-detail-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0px;
    font-weight: 600;
}

.tmmd-detail-label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #722833;
}

.tmmd-detail-value {
    font-size: 16px;
    color: #222;
    font-weight: 500;
}

.tmmd-detail-value.large {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.tmmd-detail-value a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tmmd-detail-value a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* No Results */
.tmmd-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tmmd-no-results .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ddd;
    margin-bottom: 15px;
}

.tmmd-no-results p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tmmd-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tmmd-filters {
        flex-direction: column;
    }
    
    .tmmd-view-toggles {
        align-self: flex-end;
    }
    
    .tmmd-modal-body {
        grid-template-columns: 1fr;
    }
    
    .tmmd-modal-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tmmd-directory-container {
        padding: 15px;
    }
    
    .tmmd-filters-wrapper {
        padding: 20px;
    }
    
    .tmmd-block-view {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 15px;
    }
    
    .tmmd-table-wrapper {
        overflow-x: auto;
    }
    
    .tmmd-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .tmmd-modal-details {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .tmmd-block-view {
        grid-template-columns: 1fr !important;
    }
    
    .tmmd-filters {
        gap: 15px;
    }
    
    .tmmd-filter-group {
        min-width: 100%;
    }
}
    object-fit: cover;
}

.tmmd-member-info {
    padding: 20px;
}

.tmmd-member-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.tmmd-member-edu {
    font-size: 14px;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 12px;
}

.tmmd-member-club {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
 
    align-items: center;
    gap: 6px;
}
/*
.tmmd-member-club::before {
    content: "🏢";
    font-size: 16px;
}*/

.tmmd-member-country {
    font-size: 13px;
    color: #888;
   
    align-items: center;
    gap: 6px;
}
/*
.tmmd-member-country::before {
    content: "📍";
    font-size: 14px;
}*/

/* Table View */
.tmmd-table-wrapper {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 0px 0px rgba(0,0,0,0.08);
        border-right: 1px solid #efefef;
}

.tmmd-table {
    width: 100%;
    border-collapse: collapse;
}

.tmmd-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.tmmd-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.tmmd-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.tmmd-table tbody tr {
    transition: background 0.2s ease;
}

.tmmd-table tbody tr:hover {
    background: #f9f9f9;
}

.tmmd-table tbody tr:last-child td {
    border-bottom: none;
}

/* Modal */
.tmmd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.tmmd-modal.active {
    display: block;
}

.tmmd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);  /* Change 0.7 to 0.85 for darker */
    backdrop-filter: blur(5px);
}


.tmmd-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .tmmd-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tmmd-filters {
        flex-direction: column;
    }
    
    .tmmd-view-toggles {
        align-self: flex-end;
    }
    
    .tmmd-modal-body {
        grid-template-columns: 1fr;
    }
    
    .tmmd-modal-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tmmd-directory-container {
        padding: 15px;
    }
    
    .tmmd-filters-wrapper {
        padding: 20px;
    }
    
    .tmmd-block-view {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 15px;
    }
    
    .tmmd-table-wrapper {
        overflow-x: auto;
    }
    
    .tmmd-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .tmmd-modal-details {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .tmmd-block-view {
        grid-template-columns: 1fr !important;
    }
    
    .tmmd-filters {
        gap: 15px;
    }
    
    .tmmd-filter-group {
        min-width: 100%;
    }
}