/* =========================================
   RESPONSIVE MAIN LAYOUT
   ========================================= */
.profile-main {
    max-width: 1000px; /* Allows the page to expand on desktop */
    
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Default to mobile stacked view */
    gap: 24px;
}

.profile-right {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Space between settings cards */
}



/* =========================================
   CUBA THEME OVERRIDES
   ========================================= */
.cuba-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: none;
    width: 100%;
}

/* 1. Header & Identity */
.profile-header-card {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), #8e83ff);
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(115, 102, 255, 0.3);
}

#profile-username {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Streak Pill */
.streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff5e5;
    padding: 8px 16px;
    border-radius: 20px;
}
.streak-icon { font-size: 1.2rem; }
.streak-text { color: #d97706; font-size: 0.95rem; font-weight: 500; }
.streak-text strong { font-weight: 700; font-size: 1.1rem; }

/* 2. Settings Menus */
.settings-card {
    padding: 10px 24px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}
.settings-row:last-child {
    border-bottom: none;
}
.settings-row:hover .row-left span {
    color: var(--primary);
}

.row-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.icon-box {
    width: 40px;
    height: 40px;
    background: var(--bg-body);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}
.row-left span {
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 500;
    transition: 0.2s;
}

.row-right {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
}

/* 3. Logout Button */
.cuba-logout-btn {
    width: 100%;
    background: white;
    color: var(--secondary);
    border: 1px solid #ffe5e5;
    padding: 18px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: 0.2s;
    font-family: inherit;
}
.cuba-logout-btn:hover {
    background: #fff0f0;
    border-color: #ffcccc;
    transform: translateY(-2px);
}

/* DESKTOP UPGRADE */
@media (min-width: 768px) {
    .profile-main {
        flex-direction: row; /* Switch to side-by-side */
        align-items: flex-start;
    }
    
    .profile-left {
        flex: 1; /* Takes up 1/3 of the screen */
        position: sticky; /* Makes the avatar card follow you as you scroll */
        top: 100px; 
        width: 450px;
    }
    
    .profile-right {
        width: 450px;
        flex: 2; /* Takes up 2/3 of the screen */
    }
}