/* Profile Page Styles */

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 56px; /* Account for fixed navbar */
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    color: white;
    margin-bottom: 0.5rem;
}

.profile-name small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: normal;
}

.profile-stats {
    margin-bottom: 0;
    opacity: 0.9;
}

.profile-stats span {
    font-size: 0.9rem;
}

/* User Avatar in Navbar */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Profile Sidebar */
.profile-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: sticky;
    top: 80px;
}

.profile-sidebar .nav-link {
    color: #6c757d;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.profile-sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.profile-sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Achievement Cards */
.achievement-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-2px);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h6 {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Content Cards */
.content-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-2px);
}

.content-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.content-card .card-title {
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.content-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Filters */
.content-filters .btn-group .btn {
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.content-filters .btn-group .btn:first-child,
.content-filters .btn-group .btn:last-child {
    border-radius: 20px;
}

/* Tab Content */
.tab-content .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-content .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
}

/* Recent Activity */
.activity-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-content h6 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.activity-content p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

/* Form Enhancements */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        padding: 100px 0 40px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-stats span {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .profile-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .content-filters .btn-group {
        display: flex;
        flex-wrap: wrap;
    }
    
    .content-filters .btn-group .btn {
        margin-bottom: 0.5rem;
    }
}

/* Loading States */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: #495057;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.bg-photo { background-color: #007bff !important; }
.bg-story { background-color: #28a745 !important; }
.bg-recommendation { background-color: #ffc107 !important; }

/* User Dropdown Enhancement */
#navbarUser .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
}

#navbarUser .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

#navbarUser .dropdown-item:hover {
    background-color: #f8f9fa;
}

#navbarUser .dropdown-item.active {
    background-color: #007bff;
    color: white;
}

#navbarUser .dropdown-divider {
    margin: 0.5rem 0;
}
