/* Premium Coaching Card Styles - V2 */

#masters {
    height: auto !important;
    min-height: 100vh;
}

.coach-card-v2 {
    position: relative;
    background: rgba(16, 34, 27, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    overflow: hidden;
    border: 1px solid rgba(18, 226, 140, 0.15);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(40px);
}

.coach-card-v2.revealed {
    opacity: 1;
    transform: translateY(0);
}

.coach-card-v2:hover {
    border-color: rgba(18, 226, 140, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(18, 226, 140, 0.15);
    background: rgba(16, 34, 27, 0.6);
}

/* Background Pattern */
.coach-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 11px);
    pointer-events: none;
    z-index: 0;
}

/* Avatar Section */
.coach-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.coach-avatar-ring {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #12e28c 0%, #0aa163 100%);
    box-shadow: 0 0 25px rgba(18, 226, 140, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 50%;
    background: #10221b;
    z-index: -1;
}

.coach-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10221b;
}

/* User Info */
.coach-info-main {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.coach-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.coach-name-v2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.name-badge-row {
    display: flex;
    align-items: center;
}

.verified-badge {
    color: #12e28c;
    font-size: 1.25rem;
}

.coach-qualifications-inline {
    font-size: 0.9rem;
    font-weight: 800;
    color: #12e28c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coach-role-v2 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 0.25rem;
}

/* Stats Section */
.coach-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    color: #64748b;
    /* Slate-500 */
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Tags Section */
.coach-tags-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.coach-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.coach-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Hover Action Container */
.coach-hover-actions {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 34, 27, 0.95), rgba(16, 34, 27, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.coach-card-v2:hover .coach-hover-actions {
    opacity: 1;
    visibility: visible;
}

.view-tracks-btn {
    background: #12e28c !important;
    padding: 1rem 2rem;
    border-radius: 1rem;
    color: #000 !important;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 30px rgba(18, 226, 140, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    transform: translateY(20px);
}

.coach-card-v2:hover .view-tracks-btn {
    transform: translateY(0);
}

.view-tracks-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(18, 226, 140, 0.4);
    filter: brightness(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .coach-card-v2 {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    #masters {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .coach-card-v2 {
        padding: 2rem;
    }

    .coach-avatar-ring {
        width: 140px;
        height: 140px;
    }
}

/* Touch devices: make the button more accessible if hover is tricky */
@media (hover: none) {
    .coach-hover-actions {
        opacity: 0.9;
        visibility: visible;
        background: rgba(16, 34, 27, 0.6);
        backdrop-filter: none;
        position: relative;
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .view-tracks-btn {
        transform: none;
    }
}

/* Modal Styling */
#coach-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#coach-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.coach-modal-content {
    background: rgba(16, 34, 27, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(18, 226, 140, 0.2);
    border-radius: 3rem;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3.5rem 2.5rem;
    transform: translateY(40px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: none;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

#coach-modal-overlay.active .coach-modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(18, 226, 140, 0.1);
    border-color: #12e28c;
    color: #12e28c;
}

.modal-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.modal-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.modal-name {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.modal-role {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.modal-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0.5rem 0;
}

.modal-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.modal-socials {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* Contact Section Call Boxes */
.modal-contact-header {
    font-size: 0.75rem;
    font-weight: 900;
    color: #12e28c;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.contact-boxes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.phone-contact-box {
    background: #12e28c;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.phone-contact-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(18, 226, 140, 0.3);
    filter: brightness(1.05);
}

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.contact-text-info {
    flex: 1;
}

.contact-sub-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-main-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #000;
}

.contact-arrow {
    color: rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
}

/* Footer Fix Styles */
.main-footer {
    padding: 80px 0 120px 0;
    margin-top: 100px;
    background: transparent;
    border-top: 1px solid rgba(18, 226, 140, 0.1);
    text-align: center;
}