/* Standard Page Header and Container CSS */

.page-container {
    padding: 0;
}

.page-header {
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.page-title {
    margin: 0 0 8px 0; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.page-title-icon {
    color: var(--primary);
}

.page-description {
    color: var(--text-muted); 
    margin: 0;
    line-height: 1.4;
}

/* Generic Construction / Empty State Box */
.placeholder-box {
    padding: 40px; 
    text-align: center; 
    background: rgba(0,0,0,0.2); 
    border-radius: var(--radius);
}

.placeholder-icon {
    font-size: 3rem; 
    color: var(--text-muted);
}

.placeholder-text {
    color: var(--text-muted);
}

/* Inline Loading / Error States */
.state-loading, .state-empty {
    text-align: center; 
    padding: 40px; 
    color: var(--text-muted);
}

.state-loading-icon {
    font-size: 2rem;
}

.state-error {
    color: #ff4545;
}

/* Utility for smaller headers likeBookmarks */
.page-header-small {
    padding: 16px; 
    margin-bottom: 24px; 
    display: flex; 
    align-items: center; 
    gap: 12px;
}
.page-title-small {
    margin: 0; 
    font-size: 1.2rem;
}

/* Page Back Button Header */
.page-back-button {
    color: var(--text-main); 
    text-decoration: none; 
    padding: 8px; 
    border-radius: 50%; 
    background: var(--surface-hover); 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.page-back-icon {
    font-size: 1.2rem;
}

/* Explore Page Styles */
.explore-band {
    margin-bottom: 30px;
}

.explore-band-title {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explore-band-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 20px 0;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.explore-user-card {
    background: var(--surface-hover);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.explore-user-card:hover {
    transform: translateY(-4px);
    background: var(--surface-light);
}

.explore-card-banner {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), rgba(255,255,255,0.1));
    z-index: 1;
    opacity: 0.3;
}

.explore-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 10px; /* push down over banner */
    z-index: 2;
    border: 3px solid var(--bg-main);
    background: var(--bg-main);
}

.explore-card-info {
    z-index: 2;
    position: relative;
}

.explore-card-name {
    margin: 12px 0 2px 0;
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.explore-card-handle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.explore-card-bio {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.4;
}

.explore-empty, .explore-loading {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    grid-column: 1 / -1;
}

/* Communities Directory Styles */
.communities-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.communities-empty {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
}

.community-card {
    display: block;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.community-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.community-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.community-card-title {
    margin: 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-card-count {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 99px;
    color: var(--text-muted);
}

.community-card-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}
