/* Coach Profile Page Styles */

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 56px;
    flex-wrap: nowrap;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.back-btn:hover {
    background-color: #f8f9fa;
}

.profile-header h1 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.header-logo {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

/* Profile Main Content */
.profile-main {
    padding: 20px 16px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 140px);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Unified Profile & Pricing Card */
.unified-profile-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(233, 30, 99, 0.1);
    position: relative;
    overflow: hidden;
}

.unified-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e91e63, #ff6b9d);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e63;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.coach-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    line-height: 1.2;
}

.specialization-badge {
    background: linear-gradient(135deg, #e91e63, #ff6b9d);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.stars {
    color: #ffc107;
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.rating-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

.pricing-info {
    flex-shrink: 0;
    text-align: right;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-label {
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #e91e63;
    line-height: 1;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-action {
    background: #e91e63;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.primary-action:hover {
    background: #c2185b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.primary-action:active {
    transform: translateY(0);
}

.secondary-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.secondary-action {
    flex: 1;
    background: #fff;
    border: 1px solid #e9ecef;
    color: #000;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secondary-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transition: left 0.5s ease;
}

.secondary-action:hover {
    border-color: #e91e63;
    color: #e91e63;
    background-color: #fff5f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}

.secondary-action:hover::before {
    left: 100%;
}

.secondary-action:active {
    transform: translateY(0);
}

/* Tabs Section */
.tabs-section {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tabs {
    display: flex;
}

.tab {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
}

.tab:hover {
    background-color: #f8f9fa;
}

.tab.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
    background-color: #fff5f8;
}

/* Tab Content */
.tab-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 20px;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* About Section */
.about-section {
    margin-bottom: 24px;
}

.about-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
}

.about-section p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.info-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #000;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #e91e63;
    width: 16px;
    flex-shrink: 0;
}

.experience-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.experience-list li:before {
    content: "•";
    color: #e91e63;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Portfolio Panel */
.portfolio-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.portfolio-overlay p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reviews Panel */
.reviews-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
}

.reviews-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.overall-rating {
    font-size: 48px;
    font-weight: 700;
    color: #000;
}

.stars-large {
    color: #ffc107;
    font-size: 24px;
}

.rating-count {
    font-size: 14px;
    color: #6c757d;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 16px;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trainee-review-star-input {
    margin-top: 8px;
    gap: 6px;
}

.trainee-review-star-input .coach-star {
    font-size: 28px;
}

.trainee-review-star-btn {
    background: none;
    border: none;
    padding: 4px 4px;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

.trainee-review-star-btn:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0 0 4px 0;
}

.review-rating {
    color: #ffc107;
    font-size: 12px;
}

.review-date {
    font-size: 12px;
    color: #6c757d;
}

.review-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .profile-main {
        padding: 16px 12px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .profile-section {
        padding: 20px 16px;
    }
    
    .avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .coach-name {
        font-size: 20px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .subscribe-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .tab-panel {
        padding: 16px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Subscription Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
}

.modal-header p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f8f9fa;
}

.subscription-plans {
    padding: 20px 24px;
}

.plan-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-option:last-child {
    margin-bottom: 0;
}

.plan-option:hover {
    border-color: #e91e63;
    background-color: #fff5f8;
}

.plan-option.selected {
    border-color: #e91e63;
    background-color: #fff5f8;
}

.plan-radio {
    margin-right: 16px;
    position: relative;
}

.plan-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e91e63;
    border-radius: 50%;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e91e63;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.plan-details {
    flex: 1;
    margin-right: 16px;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.plan-description {
    font-size: 14px;
    color: #6c757d;
}

.plan-price {
    text-align: right;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    display: block;
}

.original-price {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
    display: block;
    margin-top: 2px;
}

.modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirm-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.confirm-btn:hover {
    background-color: #c2185b;
}

.confirm-btn:active {
    transform: scale(0.98);
}

.cancel-btn {
    background: none;
    border: 1px solid #e9ecef;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cancel-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
    background-color: #fff5f8;
}

/* Modal Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .profile-main {
        background-color: #1a1a1a;
    }
    
    .unified-profile-card {
        background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
        border-color: rgba(233, 30, 99, 0.2);
    }
    
    .tabs-section,
    .tab-content {
        background-color: #2a2a2a;
    }
    
    .coach-name,
    .price {
        color: #fff;
    }
    
    .rating-text {
        color: #fff;
    }
    
    .rating-count {
        color: #aaa;
    }
    
    .price-label {
        color: #aaa;
    }
    
    .about-section p,
    .review-text {
        color: #ccc;
    }
    
    .info-card {
        background-color: #333;
    }
    
    .reviews-summary {
        background-color: #333;
    }
    
    .secondary-action {
        background-color: #333;
        border-color: #444;
        color: #ccc;
    }
    
    .secondary-action:hover {
        border-color: #e91e63;
        color: #e91e63;
        background-color: #2a2a2a;
    }
    
    .modal-content {
        background-color: #2a2a2a;
    }
    
    .modal-header h2 {
        color: #fff;
    }
    
    .plan-name {
        color: #fff;
    }
    
    .current-price {
        color: #fff;
    }
    
    .plan-option {
        border-color: #333;
    }
    
    .plan-option:hover {
        background-color: #333;
    }
    
    .plan-option.selected {
        background-color: #333;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .unified-profile-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .profile-header {
        padding: 10px 12px;
        min-height: 48px;
    }
    
    .profile-header h1 {
        font-size: 14px;
        padding: 0 4px;
    }
    
    .back-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 6px;
    }
    
    .header-logo {
        height: 20px;
        max-width: 60px;
    }
    
    .profile-avatar {
        order: 1;
    }
    
    .profile-info {
        order: 2;
        text-align: center;
    }
    
    .pricing-info {
        order: 3;
        text-align: center;
    }
    
    .avatar-img {
        width: 80px;
        height: 80px;
    }
    
    .coach-name {
        font-size: 18px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .secondary-actions {
        gap: 8px;
    }
    
    .secondary-action {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .primary-action {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .unified-profile-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .profile-header {
        padding: 8px 10px;
        min-height: 44px;
    }
    
    .profile-header h1 {
        font-size: 13px;
        padding: 0 2px;
    }
    
    .back-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
        margin-right: 4px;
    }
    
    .header-logo {
        height: 18px;
        max-width: 50px;
    }
    
    .avatar-img {
        width: 70px;
        height: 70px;
    }
    
    .coach-name {
        font-size: 18px;
    }
    
    .price {
        font-size: 18px;
    }
    
    .primary-action {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .secondary-action {
        padding: 8px 10px;
        font-size: 12px;
    }
}
