/* Profile Page Specific Styles - GoalScorePro */
.gsp-profile-header {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.gsp-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gsp-gradient-primary);
    border-radius: var(--gsp-radius-xl) var(--gsp-radius-xl) 0 0;
    opacity: 0.8;
}

.gsp-profile-avatar-wrap {
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.gsp-profile-avatar,
.gsp-profile-avatar-wrap .gsp-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    border: 4px solid var(--gsp-bg-card);
}

.gsp-profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 4px solid var(--gsp-bg-card);
}

.gsp-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gsp-profile-username {
    font-size: 0.9rem;
    color: var(--gsp-text-muted);
    margin-bottom: 0.25rem;
}
.gsp-profile-phone {
    font-size: 0.875rem;
    color: var(--gsp-text-muted);
    margin-bottom: 1rem;
}

.gsp-profile-bio {
    font-size: 0.9rem;
    color: var(--gsp-text-secondary);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.gsp-profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
    margin-top: 1rem;
}

.gsp-profile-stat {
    text-align: center;
    cursor: pointer;
}

.gsp-profile-stat:hover .gsp-stat-value {
    color: var(--gsp-primary);
}

.gsp-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
    transition: color 0.2s;
}

.gsp-stat-label {
    font-size: 0.75rem;
    color: var(--gsp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsp-profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.gsp-follow-btn {
    padding: 0.625rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.gsp-follow-btn.following {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10B981;
    color: #10B981;
}

/* Prediction Stats Card */
.gsp-prediction-stats-card {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.gsp-prediction-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.gsp-pred-stat-item {
    background: rgba(249, 115, 22, 0.05);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    text-align: center;
}

.gsp-pred-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gsp-pred-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gsp-primary);
}

.gsp-pred-stat-label {
    font-size: 0.75rem;
    color: var(--gsp-text-muted);
}

/* Recent Predictions */
.gsp-recent-predictions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gsp-recent-prediction-item {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gsp-recent-prediction-item:hover {
    border-color: var(--gsp-primary);
    transform: translateX(4px);
}

.gsp-recent-prediction-match-card {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.gsp-recent-prediction-match-card:hover {
    border-color: var(--gsp-primary);
    transform: translateX(4px);
}
.gsp-recent-prediction-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.gsp-recent-prediction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.gsp-pred-match {
    font-weight: 600;
    font-size: 0.9rem;
}

.gsp-pred-match-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.gsp-pred-category-block {
    border-left: 3px solid var(--gsp-primary);
    padding-left: 0.5rem;
}

.gsp-pred-category-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gsp-text);
    margin-bottom: 0.35rem;
}

.gsp-pred-type {
    font-size: 0.75rem;
    color: var(--gsp-text-muted);
}

.gsp-pred-result {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gsp-pred-result.correct {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.gsp-pred-result.incorrect {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.gsp-pred-result.pending {
    background: rgba(249, 115, 22, 0.15);
    color: var(--gsp-primary);
}

.gsp-pred-result.unavailable {
    background: rgba(107, 114, 128, 0.2);
    color: #9CA3AF;
}

/* Tabs */
.gsp-profile-tabs {
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .gsp-profile-stats {
        gap: 1rem;
    }

    .gsp-stat-value {
        font-size: 1.25rem;
    }

    .gsp-profile-avatar,
    .gsp-profile-avatar-img {
        width: 80px;
        height: 80px;
    }
    .gsp-profile-avatar { font-size: 2rem; }
}

/* Modal overlay (edit profile, followers, following) */
.gsp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    box-sizing: border-box;
}

.gsp-modal {
    background: var(--gsp-bg-card);
    border-radius: var(--gsp-radius-xl);
    max-width: 440px;
    width: 100%;
    max-height: min(90vh, 560px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gsp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    flex-shrink: 0;
}

.gsp-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gsp-text-primary);
}

.gsp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gsp-text-muted);
    padding: 0 0.25rem;
    line-height: 1;
}

.gsp-modal-close:hover {
    color: var(--gsp-primary);
}

.gsp-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.gsp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(249, 115, 22, 0.15);
}

/* Edit profile form */
.gsp-edit-avatar-wrap {
    text-align: center;
    margin-bottom: 1.25rem;
}

.gsp-edit-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(135deg, #F97316, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.gsp-edit-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gsp-form-group {
    display: block;
    margin-bottom: 1rem;
}

.gsp-form-group span {
    display: block;
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
    margin-bottom: 0.35rem;
}

.gsp-form-group input,
.gsp-form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: var(--gsp-radius-md);
    background: var(--gsp-bg-card);
    color: var(--gsp-text-primary);
    font-size: 1rem;
    box-sizing: border-box;
}

.gsp-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* User list (followers / following) */
.gsp-user-list {
    min-height: 120px;
}

.gsp-user-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--gsp-radius-md);
    text-decoration: none;
    color: var(--gsp-text-primary);
    transition: background 0.2s;
}

.gsp-user-list-item:hover {
    background: rgba(249, 115, 22, 0.08);
}

.gsp-user-list-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F97316, #10B981);
}
.gsp-user-list-avatar-wrap .gsp-user-list-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gsp-user-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.gsp-user-list-name {
    font-weight: 500;
}

/* Modal & user list: web + mobile responsive */
@media (max-width: 640px) {
    .gsp-modal-overlay {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .gsp-modal {
        max-width: 100%;
        max-height: min(85vh, 85dvh);
        border-radius: 1rem;
    }

    .gsp-modal-header {
        padding: 1rem 1rem;
    }

    .gsp-modal-header h3 {
        font-size: 1.125rem;
    }

    .gsp-modal-close {
        font-size: 1.75rem;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .gsp-modal-body {
        padding: 1rem;
    }

    .gsp-user-list {
        min-height: 100px;
    }

    .gsp-user-list-item {
        padding: 0.875rem 1rem;
        gap: 1rem;
        min-height: 56px;
    }

    .gsp-user-list-avatar-wrap,
    .gsp-user-list-avatar {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 380px) {
    .gsp-modal-overlay {
        padding: 0.5rem;
    }

    .gsp-modal {
        border-radius: 0.75rem;
    }
}
