 /* UNIQUE CSS VARIABLES */
:root { 
    --ap-brand: #ea580c; 
    --text-main: #111827; 
    --text-mut: #6b7280; 
    --bg-main: #ffffff; 
    --border: #e5e7eb; 
    --hover-bg: #f3f4f6;
}
body.dark-mode { 
    --ap-bg: #0f172a; 
    --apx-panel: #1e293b; 
    --text-main: #f8fafc; 
    --text-mut: #94a3b8; 
    --border: #1e293b; 
    --apx-border-heavy: #334155; 
    --hover-bg: #1e293b;
    background-color: var(--ap-bg); 
    color: var(--text-main); 
}
body { background-color: var(--bg-main); color: var(--text-main); margin: 0; padding: 0; transition: background-color 0.2s, color 0.2s; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .av-ui-font { font-family: 'Inter', sans-serif; }
.ax-card__title, .ax-card__excerpt, .ax-hero h1 { font-family: 'Merriweather', Georgia, serif; }

/* Container */
.ax-hero { padding: 40px 20px 20px; max-width: 1140px; margin: 0 auto; text-align: left; }
.ax-hero h1 { font-size: 42px; font-weight: 900; margin: 0 0 10px; letter-spacing: -0.5px; color: var(--text-main); }
.ax-hero p { font-size: 17px; color: var(--text-mut); margin: 0; max-width: 600px; line-height: 1.6; }

/* NEW: Feed Selection Tabs (For You / Following) */
.ax-feed-tabs {
    display: flex;
    gap: 12px;
    padding: 20px 20px 10px;
    max-width: 1140px;
    margin: 0 auto;
}
.ax-feed-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-mut);
    background: transparent;
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.ax-feed-tab:hover {
    border-color: var(--text-mut);
    color: var(--text-main);
}
.ax-feed-tab.is-active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* UPGRADED: Swipeable Categories Navigation */
.ax-stickynav { 
    position: sticky; 
    top: 0; /* Adjust to header height if your header is sticky */
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    z-index: 100; 
    border-bottom: 1px solid var(--border); 
}
body.dark-mode .ax-stickynav {
    background: rgba(15, 23, 42, 0.95);
}
.ax-stickynav__inner { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 14px 20px; 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; /* Makes it swipeable */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}
.ax-stickynav__inner::-webkit-scrollbar { display: none; }
.ax-cat-pill { 
    scroll-snap-align: start;
    padding: 6px 16px; 
    color: var(--text-mut); 
    font-size: 13px; 
    font-weight: 600; 
    white-space: nowrap; 
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s; 
    font-family: 'Inter', sans-serif;
}
.ax-cat-pill:hover { 
    color: var(--text-main); 
    background: var(--hover-bg);
}
.ax-cat-pill.is-active { 
    color: var(--text-main); 
    font-weight: 700; 
    background: var(--hover-bg);
}

.ax-container { max-width: 1140px; margin: 20px auto 60px auto; padding: 0 20px; display: flex; gap: 50px; align-items: flex-start; }
.ax-main { flex: 1; min-width: 0; max-width: 740px; }
.ax-sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 100px; }
@media (max-width: 992px) { .ax-sidebar { display: none; } }

/* Article Card (Optimized Layout) */
.ax-card { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 30px; padding: 32px 0; border-bottom: 1px solid var(--border); transition: opacity 0.2s; }
.ax-card:last-child { border-bottom: none; }
.ax-card__content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ax-card__author { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.ax-card__avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--hover-bg); }
.ax-card__username { font-size: 13px; font-weight: 600; color: var(--text-main); }
.ax-card__username:hover { text-decoration: underline; color: var(--ap-brand); }
.ax-btn-follow { background: transparent; border: 1px solid var(--border); color: var(--text-mut); padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-left: 4px; font-family: 'Inter', sans-serif; }
.ax-btn-follow:hover { border-color: var(--text-main); color: var(--text-main); }
.ax-btn-follow.is-following { background: var(--hover-bg); border-color: transparent; color: var(--text-main); }

.ax-card__title { font-size: 22px; font-weight: 900; line-height: 1.35; margin: 0 0 8px; color: var(--text-main); letter-spacing: -0.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.ax-card__title:hover { color: var(--ap-brand); }
.ax-card__excerpt { font-size: 15px; color: var(--text-mut); line-height: 1.5; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* OPTIMIZED THUMBNAIL (Prevents Cumulative Layout Shift) */
.ax-card__img-wrap { width: 175px; height: 125px; overflow: hidden; flex-shrink: 0; background: var(--hover-bg); }
.ax-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.3s ease; }
.ax-card:hover .ax-card__img { transform: scale(1.05); }

.ax-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-mut); font-weight: 500; font-family: 'Inter', sans-serif; }
.ax-card__meta-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ax-card__dot { width: 3px; height: 3px; background: #d1d5db; border-radius: 50%; }
.ax-card__badge { background: var(--hover-bg); padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-main); transition: 0.2s; text-decoration: none;}
.ax-card__badge:hover { filter: brightness(0.95); }

.ax-btn-icon { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 4px; display: flex; align-items: center; font-size: 16px; }
.ax-btn-icon:hover { color: var(--text-main); }
.ax-btn-icon.is-active i { color: var(--ap-brand); }

/* MOBILE APP ENVIRONMENT STYLING */
@media (max-width: 768px) { 
    .ax-hero { padding: 30px 16px 16px; }
    .ax-hero h1 { font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
    .ax-hero p { font-size: 15px; }
    
    .ax-feed-tabs { padding: 10px 16px; }
    .ax-stickynav__inner { padding: 12px 16px; gap: 8px; }

    .ax-container { margin: 10px auto 40px auto; padding: 0 16px; }
    .ax-card { gap: 16px; padding: 20px 0; align-items: flex-start; } 
    .ax-card__content { padding-right: 0; display: flex; flex-direction: column; }
    
    /* MOBILE THUMBNAIL */
    .ax-card__img-wrap { width: 110px; height: 110px; margin-top: 4px; } 
    .ax-card__title { font-size: 16px; line-height: 1.3; margin-bottom: 6px; -webkit-line-clamp: 2; } 
    .ax-card__author { margin-bottom: 6px; }

    .ax-card__excerpt { display: -webkit-box; font-size: 13px; line-height: 1.4; color: var(--text-mut); margin: 0 0 12px 0; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } 

    .ax-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; }
    .ax-card__meta-left { font-size: 11px; gap: 6px; display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: calc(100% - 40px); }
    .ax-card__meta-left time { flex-shrink: 0; }
    .ax-card__badge { padding: 2px 6px; font-size: 10px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
}

.ax-loader { text-align: center; padding: 30px 0; color: var(--text-mut); display: none; }
.ax-end { text-align: center; padding: 40px 0; color: var(--text-mut); font-size: 15px; font-weight: 500; }
.ad-container { margin: 20px 0; padding: 20px 0; border-bottom: 1px solid var(--border); text-align: center; }
.ad-label { font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; font-weight: 700; display: block; }
.ax-guest-prompt { text-align: center; padding: 50px 24px; border: 1px solid var(--border); margin: 20px 0; border-radius: 12px; background: var(--hover-bg); }
.ax-guest-prompt h3 { margin: 0 0 10px 0; font-size: 22px; font-weight: 900; }
.ax-guest-prompt p { font-size: 15px; color: var(--text-mut); margin: 0 0 24px 0; }
 