/* =========================================
   PROFILE PAGE STYLES (Clean Dashboard)
   ========================================= */

/* --- 1. Variables (Theme Colors) --- */
:root {
    --bg-dark: #0a192f;       /* Deep Navy */
    --card-bg: #112240;       /* Lighter Navy for Cards */
    --text-primary: #e6f1ff;  /* White/Light Blue */
    --text-secondary: #8892b0;/* Greyish Blue */
    --accent: #64ffda;        /* Neon Teal */
    --danger: #ff6b6b;        /* Red for Logout */
}

/* --- 2. Global Settings --- */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* --- 3. Main Container --- */
.profile-container {
    max-width: 800px; /* Width kam ki taaki single column centered lage */
    margin: 120px auto 50px auto; /* Navbar ke neeche space */
    padding: 0 20px;
    animation: fadeIn 0.8s ease;
}

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

/* --- 4. Profile Header Card (Banner + Avatar) --- */
.profile-header-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden; /* Round corners */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

/* Gradient Banner */
.banner {
    height: 140px;
    background: linear-gradient(45deg, #020c1b, #1d3f72);
    position: relative;
}

/* Info Wrapper (Avatar + Text) */
.profile-info-wrapper {
    padding: 0 30px 30px 30px;
    position: relative;
    display: flex;
    align-items: flex-end; /* Text bottom align hoga */
    gap: 25px;
    margin-top: -60px; /* Avatar ko banner ke upar lane ke liye */
}

/* Avatar Circle */
.avatar-box {
    position: relative;
    flex-shrink: 0;
}

.user-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid var(--card-bg); /* Cutout effect */
    background: #fff;
    object-fit: cover;
}

.status-indicator {
    width: 18px;
    height: 18px;
    background-color: var(--accent); /* Online Green/Teal */
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    position: absolute;
    bottom: 15px;
    right: 10px;
    box-shadow: 0 0 10px var(--accent);
}

/* User Text Details */
.user-details {
    flex-grow: 1;
    padding-bottom: 5px;
}

.user-details h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Member Badge */
.badge {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* New Email Style */
.user-email-text {
    color: var(--accent);
    font-family: monospace; /* Techy font */
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.location {
    font-size: 0.9rem;
    color: #5e6c8f;
}

/* --- 5. Single Column Content (Activity Section) --- */
.single-column-layout {
    width: 100%;
}

.stats-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-card h3 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Activity List Styling */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.03); /* Hover karne par halka highlight */
}

.activity-item .icon {
    width: 45px;
    height: 45px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    border-radius: 12px; /* Soft square */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.act-text {
    display: flex;
    flex-direction: column;
}

.act-text strong {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.act-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- 6. Mobile Responsive --- */
@media (max-width: 768px) {
    
    .profile-container {
        padding: 0 15px;
        margin-top: 100px;
    }

    .profile-info-wrapper {
        flex-direction: column;
        align-items: center; /* Center align items */
        text-align: center;
        margin-top: -70px;
        padding-bottom: 30px;
    }

    .user-avatar {
        width: 120px;
        height: 120px;
    }

    .user-details {
        width: 100%;
        margin-top: 10px;
    }

    .user-details h1 {
        justify-content: center; /* Name center karein */
        flex-wrap: wrap; /* Badge neeche aa jaye agar jagah kam ho */
    }

    /* Activity Items chhota karein */
    .activity-item {
        padding: 12px;
    }
}
