/* Profile Card */
.profile-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px; /* Reduced padding */
    margin-bottom: 15px; /* Reduced margin */
    width: 100%;
}

/* Profile Picture */
img.rounded-circle {
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100px; /* Smaller image for better mobile display */
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

img.rounded-circle:hover {
    transform: scale(1.05);
}

/* Level Badge */
.level-badge {
    background-color: #ffc107;
    color: #212529;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress {
    height: 12px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    background-image: linear-gradient(to right, #ffc107, #ff9800);
    transition: width 0.5s ease-in-out;
}

/* Streaks Section */
.streak-box {
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 2px solid transparent;
}

.streak-box:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.streak-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color, #007bff);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.streak-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Better distribution */
    gap: 10px; /* Reduced gap */
    margin-top: 10px;
}

.badge-link-container {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.badge-link-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.badge-link-container:hover .profile-card {
    box-shadow: none;
}

.badge-link-container:hover h5 {
    color: var(--primary-color);
}

.badge-link-container .profile-card {
    margin-bottom: 0;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px; /* Reduced width */
}

.badge-circle {
    width: 50px; /* Smaller size */
    height: 50px;
    border: 2px solid #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.badge-circle:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.badge-circle i {
    font-size: 22px; /* Smaller icons */
}

.badge-active i {
    color: var(--primary-color);
}

.badge-inactive i {
    color: #6c757d;
}

.badge-text {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* Settings Button */
.settings-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: none;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background-color: #e9ecef;
    transform: rotate(30deg);
}

/* Media queries for better responsiveness */
@media (max-width: 576px) {
    .profile-card {
        padding: 10px; /* Adjusted padding for smaller screens */
    }
    
    img.rounded-circle {
        width: 70px; /* Smaller profile picture */
        height: 70px;
    }
    
    .badges-container {
        gap: 5px; /* Reduced gap for badges */
    }
    
    .badge-item {
        width: 60px; /* Adjusted badge size */
    }
    
    .badge-circle {
        width: 40px; /* Smaller badge circle */
        height: 40px;
    }
    
    .badge-circle i {
        font-size: 18px; /* Adjusted icon size */
    }
    
    .streak-value {
        font-size: 1.5rem;
    }
    
    .streak-label {
        font-size: 0.8rem;
    }
    
    .streak-box {
        padding: 15px;
    }
    
    .settings-btn {
        width: 40px; /* Smaller settings button */
        height: 40px;
    }
}
