/* Member Profile Styles */

.strava-member-profile {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.profile-image-container {
    margin-right: 2rem;
    position: relative;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
}

.profile-name {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.profile-location {
    margin: 0 0 1rem;
    color: #666;
    font-size: 1rem;
}

/* Membership Badge */
.membership-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.membership-badge.active {
    background: #e3f2fd;
    color: #1976d2;
}

.membership-badge.pending {
    background: #fff3e0;
    color: #f57c00;
}

.membership-badge.inactive {
    background: #f5f5f5;
    color: #757575;
}

/* Profile Content */
.profile-content {
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.profile-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #1976d2;
    border-radius: 2px;
}

.profile-bio {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Membership Info */
.membership-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.membership-info p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.membership-info p:first-child {
    margin-top: 0;
}

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

/* Error Messages */
.strava-error {
    padding: 1rem;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .profile-image-container {
        margin: 0 0 1.5rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .strava-member-profile {
        margin: 1rem;
        border-radius: 4px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .stat-item {
        padding: 1rem;
    }

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

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

.strava-member-profile {
    animation: fadeIn 0.5s ease-out;
}

/* Loading State */
.strava-member-profile.loading {
    opacity: 0.7;
    pointer-events: none;
}

.strava-member-profile.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 