/* Trainers Directory Specific Styles */
.directory-section {
    padding-top: 120px;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Search Header */
.search-container {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.15) 0%, rgba(19, 78, 74, 0.3) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid var(--team-card-border, rgba(255,255,255,0.1));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.search-input-group {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 50px !important;
    padding: 15px 30px 15px 50px !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
}

.search-input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: 1.2rem;
    z-index: 5;
}

/* Trainer Cards */
.trainer-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trainer-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.trainer-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.trainer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, 0.3);
    padding: 3px;
    object-fit: cover;
}

.trainer-info h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.trainer-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-fide { background: rgba(14, 165, 233, 0.2); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.3); }
.tag-ctc { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

.detail-row {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.detail-row i {
    width: 20px;
    color: #10b981;
}

/* Light Theme Overrides */
[data-bs-theme="light"] .directory-section {
    background: transparent;
}

[data-bs-theme="light"] .search-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-bs-theme="light"] .search-input {
    background: #fff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

[data-bs-theme="light"] .trainer-card {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .trainer-info h4 {
    color: #1e293b;
}

[data-bs-theme="light"] .trainer-id {
    color: #94a3b8;
}

[data-bs-theme="light"] .detail-row {
    color: #64748b;
}
