/* -----------------------------
   Profile Page specific styles (Instagram Theme)
   ----------------------------- */

.topbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Profile Main Layout */
.profile-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background-color: var(--bg-color);
}

/* Optional Subtle Header */
.profile-cover {
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: -40px;
    z-index: 1;
}

/* Instagram Header Row (Avatar + Stats) */
.profile-header-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    padding-top: 0.5rem;
    z-index: 2;
    position: relative;
    gap: 1.5rem;
}

.profile-avatar-container {
    flex-shrink: 0;
    width: 86px;
    height: 86px;
    padding: 3px;
    background: var(--bg-color);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Row (Right side of Avatar) */
.profile-stats-row {
    flex: 1;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
}

.stat-unit {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Information Stack (Below Top Row) */
.profile-info-stack {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    margin-bottom: 1.25rem;
}

.profile-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: #fff;
}

.profile-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.profile-bio {
    font-size: 0.925rem;
    line-height: 1.4;
    color: #f1f1f1;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    max-width: 90%;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5d8ff;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Action Buttons (Instagram Style) */
.profile-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem;
    width: 100%;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.profile-actions .btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-actions .btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.profile-actions .btn-primary {
    background: var(--accent-gradient);
    border: none;
}

/* Feed Grid (3-column Square) */
.profile-content {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tabs {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
    opacity: 0.4;
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.tab-btn.active {
    opacity: 1;
}

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px !important;
    padding: 2px 0 0 0;
}

.product-card {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a1a;
    border: none;
    border-radius: 0;
    position: relative;
    width: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0;
}

.product-info {
    display: none !important; /* Grid only shows images */
}

/* ───────── Sidebar & Menu ───────── */
/* MOVED TO styles.css */

/* Utils */
.hidden { display: none !important; }

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