/* =========================================
   ACCOUNT SETTINGS & SHOWCASE LAYOUT
   ========================================= */
.profile-main {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    padding-bottom: 100px;
}

.cuba-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: none;
    width: 100%;
    box-sizing: border-box;
}

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

.avatar-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), #8e83ff);
    color: white;
    font-size: 2.5rem;
    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.5rem; color: var(--text-dark); font-weight: 600; }

/* Edit Profile Form Forms */
.input-group { margin-bottom: 15px; text-align: left; width: 100%; }
.input-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.input-group input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; outline: none; font-family: inherit; font-size: 1rem; box-sizing: border-box;}
.cuba-btn-primary { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; font-family: inherit; }
.cuba-btn-outline { background: transparent; color: var(--text-dark); border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; font-family: inherit;}

/* Streak Pill */
.streak-pill { display: inline-flex; align-items: center; gap: 8px; background: #f1f3f9; padding: 8px 16px; border-radius: 20px; color: var(--text-dark); font-weight: 500;}
.streak-pill:hover { background: #e2e8f0; }

/* Article Showcase Grid */
.showcase {
    display: grid;
    gap: 20px;
    width: 100%;
    grid-template-columns: 1fr;
}

@media(min-width: 600px){ .showcase { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px){ .showcase { grid-template-columns: repeat(3, 1fr); } }

/* Article Cards */
.article-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}
.article-box:hover { transform: translateY(-3px); border-color: var(--primary-light); }

.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background-color: #f1f3f9; }
.article-title { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Status Badges */
.cuba-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; display: inline-block; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.badge-pending { background: #fff5e5; color: #f59e0b; }
.badge-success { background: #e5f8ed; color: var(--success); }

/* Footer & Buttons */
.article-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #eee; }
.view-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 500;}
.card-action { display: flex; gap: 8px;}
.card-btn { width: 36px; height: 36px; background: var(--bg-body); border: none; border-radius: 8px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.card-btn:hover { background: var(--primary-light); }

/* Loading Animation */
.article-box.is-loading { pointer-events: none; overflow: hidden; min-height: 200px;}
.article-box.is-loading * { visibility: hidden; }
.article-box.is-loading::after {
    content: ''; position: absolute; top:0; left:0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer { 0% {background-position: -200% 0;} 100% {background-position: 200% 0;} }

/* Logout */
.cuba-logout-btn {
    width: 100%; background: white; color: var(--secondary); border: 1px solid #ffe5e5;
    padding: 16px; 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;
    margin-top: 20px;
}
.cuba-logout-btn:hover { background: #fff0f0; border-color: #ffcccc; transform: translateY(-2px); }