/* PROFILE PAGE STYLES */
body {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(66, 133, 244, 0.1) 0%, transparent 20%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px; /* Space for Navbar */
}

.profile-container {
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 1100px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- LEFT CARD --- */
.profile-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: fit-content;
}

.avatar-glow {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 2px solid #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.email-text {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.edit-btn {
    background: transparent;
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.edit-btn:hover {
    background: #4CAF50;
    color: white;
}

/* --- RIGHT STATS GRID --- */
.stats-grid {
    flex: 2;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#welcome-msg {
    font-size: 2rem;
    margin-bottom: 10px;
}

.grid-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-box i {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.stat-box h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-box p {
    color: #888;
    font-size: 0.9rem;
}

/* RECENT ACTIVITY */
.recent-activity {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1;
}

.recent-activity h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.recent-activity ul {
    list-style: none;
}

.recent-activity li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 10px;
}

.status.safe {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status.moderate {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }
    .grid-box {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .profile-container {
        width: 95%;
        margin-top: 20px;
        padding-bottom: 80px; /* Space for fixed logout btn if used */
    }
    
    .profile-card, .stats-grid {
        width: 100%;
        min-width: 0; /* Prevents overflow */
    }
    
    .grid-box {
        grid-template-columns: 1fr; /* Stack stats vertically */
    }
}