/*
Theme Name: IsraelSomali News
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A Tailwind CSS Global News Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, modern, tailwind
Text Domain: israelsomali
*/

/* Main styles are handled via Tailwind CDN in header.php as requested *//*
Theme Name: IsraelSomali News
Theme URI: https://portfolio.hiigsitech.com
Author: Mubarik Osman
Author URI: https://portfolio.hiigsitech.com
Description: A dynamic, glassmorphism-inspired news theme featuring modern UI/UX, responsive grid layouts, and light/dark modes.
Version: 1.0.0
Text Domain: israelsomali
*/

/* ==========================================================================
   1. CSS VARIABLES (DRY Theming & Glassmorphism System)
   ========================================================================== */
:root {
    /* Light Theme Colors */
    --bg-body: #f4f6f9;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --bg-inverse: #0f172a;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.3);
    --primary-light: rgba(79, 70, 229, 0.1);
    
    --accent-1: #10b981; /* Green */
    --accent-2: #f43f5e; /* Rose / Urgent */
    --accent-3: #8b5cf6; /* Purple */
    --accent-4: #0ea5e9; /* Sky */
    
    --border: rgba(148, 163, 184, 0.15);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    /* Typography */
   /* Typography */
    /* Typography */
    /* Typography */
--font-display: 'Plus Jakarta Sans', sans-serif;
--font-body: 'Inter', sans-serif;
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-hover: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
    
    --blur-md: blur(12px);
    --blur-lg: blur(20px);
    
    /* Spacing & Radii (Reduced Spacing for Tighter Layout) */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 9999px;
    
    --space-xs: 4px; --space-sm: 8px; --space-md: 16px; 
    --space-lg: 24px; --space-xl: 32px; --space-2xl: 60px;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#post-view {
padding-top: 120px; /* Adjust this number based on your header's height */
}
/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-body: #0b0f19;
    --bg-surface: #151b2b;
    --bg-glass: rgba(21, 27, 43, 0.65);
    --bg-glass-hover: rgba(30, 41, 59, 0.85);
    --bg-inverse: #ffffff;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-tertiary: #64748b;
    --text-inverse: #0f172a;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 25px 50px -12px rgba(79, 70, 229, 0.3);
    --primary-glow: rgba(79, 70, 229, 0.15);
}

/* ==========================================================================
   2. RESET & BASE (DRY)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg-body); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; transition: var(--transition); overflow-x: hidden; position: relative; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
a { text-decoration: none; color: inherit; cursor: pointer; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
button, input, textarea { font-family: inherit; border: none; outline: none; background: none; }

/* Scroll Reveal Animation */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   3. UTILITY CLASSES (Scalable Architecture)
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.flex { display: flex; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); } .gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); } .gap-lg { gap: var(--space-lg); } .gap-xl { gap: var(--space-xl); }

.grid { display: grid; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.mt-xs { margin-top: var(--space-xs); } .mt-sm { margin-top: var(--space-sm); } .mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); } .mt-xl { margin-top: var(--space-xl); } .mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); } .mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); } .mb-xl { margin-bottom: var(--space-xl); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.text-center { text-align: center; } .text-right { text-align: right; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-muted); } .text-primary { color: var(--primary); }
.font-bold { font-weight: 700; } .font-medium { font-weight: 500; }
.w-full { width: 100%; } .h-full { height: 100%; }

/* Layout Grid */
.layout-main { display: grid; grid-template-columns: 2.2fr 1fr; gap: var(--space-xl); align-items: start; }

/* Background Watermark */
.bg-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(48deg);
    font-size: clamp(5rem, 15vw, 12rem);
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--text-main);
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

/* ==========================================================================
   4. COMPONENTS (Glassmorphism & Reusables)
   ========================================================================== */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 14px 28px; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-glass { background: var(--bg-glass); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md); border: 1px solid var(--border-glass); color: var(--text-main); }
.btn-glass:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-icon { width: 44px; height: 44px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-main); transition: var(--transition); cursor: pointer; backdrop-filter: var(--blur-md); }
.btn-icon:hover { background: var(--primary); color: white; transform: translateY(-2px); border-color: var(--primary); }

/* Read More Button */
.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: var(--space-md);
    transition: var(--transition);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-read:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-glass); backdrop-filter: var(--blur-md); border: 1px solid var(--border-glass); color: var(--text-main); }
.badge-solid { background: var(--primary); color: white; border: none; }

/* Glass Cards */
.glass-card { background: var(--bg-glass); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md); border-radius: var(--radius-md); border: 1px solid var(--border-glass); box-shadow: var(--shadow-glass); transition: var(--transition); overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.glass-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(79, 70, 229, 0.4); background: var(--bg-glass-hover); }

.card-img-wrapper { position: relative; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.glass-card:hover .card-img-wrapper img { transform: scale(1.08); }
.card-body { padding: var(--space-lg); display: flex; flex-direction: column; flex-grow: 1; }

/* Section Titles */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-md); position: relative; }
.section-title { font-size: 2rem; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 50px; height: 4px; background: linear-gradient(90deg, var(--primary), transparent); border-radius: var(--radius-pill); }
.view-all { font-size: 0.95rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.view-all:hover { color: var(--primary-hover); gap: 8px; }

/* Meta Row */
.meta-row { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-top: auto; padding-top: var(--space-md); }
.meta-dot { width: 4px; height: 4px; background: var(--border); border-radius: 50%; }

/* ==========================================================================
   5. HEADER, NAVIGATION & TICKER (Smart Hide/Show)
   ========================================================================== */
/* Moved Header Up slightly per request */
.header-wrapper { position: fixed; top: 12px; left: 0; right: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); padding: 0 var(--space-lg); pointer-events: none; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.header-wrapper.hide { transform: translateY(-150%); }

header { background: var(--bg-glass); backdrop-filter: var(--blur-lg); -webkit-backdrop-filter: var(--blur-lg); border: 1px solid var(--border-glass); border-radius: var(--radius-pill); width: 100%; max-width: 1200px; box-shadow: var(--shadow-glass); pointer-events: auto; padding: 0 var(--space-xl); height: 75px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; color: var(--text-main); }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent-3)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; box-shadow: 0 4px 15px var(--primary-glow); }

.nav-links { display: flex; gap: var(--space-xl); font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); }

/* Modern News Ticker - Slower & Mask Fade */
.ticker-wrap { width: 100%; max-width: 1100px; background: var(--bg-glass); backdrop-filter: var(--blur-lg); border: 1px solid var(--border-glass); border-radius: var(--radius-pill); height: 36px; display: flex; align-items: center; overflow: hidden; pointer-events: auto; box-shadow: var(--shadow-sm); color: var(--text-main); font-size: 0.85rem; font-weight: 600; 
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
/* Slower animation */
.ticker-move { display: flex; gap: 4rem; animation: tickerAnim 40s linear infinite; cursor: pointer; padding-left: 100%; white-space: nowrap; }
.ticker-move:hover { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 8px; }
.ticker-badge { background: var(--accent-2); color: white; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 800; animation: pulse 2s infinite; }

@keyframes tickerAnim { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* Main Container Offset */
main { padding-top: 145px; padding-bottom: 60px; min-height: 100vh; }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   6. SECTIONS STYLING
   ========================================================================== */

/* Section 1: Hero Bento */
.hero-bento { display: grid; grid-template-columns: 2.5fr 1fr; grid-template-rows: 250px 250px; gap: var(--space-md); margin-bottom: var(--space-xl); }
.bento-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); }
.bento-card:first-child { grid-row: 1 / -1; }
.bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.bento-card:hover img { transform: scale(1.05); }

.bento-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-xl); color: white; gap: var(--space-sm); }
.bento-overlay .badge { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: white; backdrop-filter: var(--blur-md); width: max-content; }
.bento-card:first-child .bento-overlay h2 { font-size: 2.5rem; line-height: 1.2; margin-bottom: var(--space-xs); }
.bento-card:not(:first-child) .bento-overlay { padding: var(--space-lg); }
.bento-card:not(:first-child) .bento-overlay h2 { font-size: 1.35rem; line-height: 1.3; }
.bento-card .meta-row { margin-top: 0; color: rgba(255,255,255,0.8); }

/* Section 2: Categories Strip (Smaller as requested) */
.cat-strip { display: flex; gap: var(--space-md); overflow-x: auto; padding-bottom: var(--space-sm); scrollbar-width: none; margin-bottom: var(--space-xl); }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--bg-glass); backdrop-filter: var(--blur-md); border: 1px solid var(--border-glass); border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.cat-pill i { font-size: 1.1rem; }
.cat-pill:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Section 3: Large Featured Content */
.featured-list-card { display: flex; gap: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-lg); background: var(--bg-glass); backdrop-filter: var(--blur-md); border: 1px solid var(--border-glass); margin-bottom: var(--space-lg); transition: var(--transition); }
.featured-list-card:hover { transform: translateX(5px); border-color: var(--primary-glow); box-shadow: var(--shadow-hover); background: var(--bg-glass-hover); }
.featured-list-card img { width: 40%; max-width: 300px; height: 260px; border-radius: var(--radius-md); object-fit: cover; }
.featured-list-content { display: flex; flex-direction: column; justify-content: center; padding: var(--space-sm); flex-grow: 1; }
.featured-list-content h3 { font-size: 1.75rem; margin: var(--space-sm) 0; line-height: 1.3; }

/* Section 4: Grid Posts */
.post-grid-card h4 { font-size: 1.25rem; margin-bottom: var(--space-xs); line-height: 1.4; }
.post-grid-card .card-img-wrapper { height: 200px; }

/* Section 5: Newsletter Hero (Mesh Gradient) */
.newsletter-mesh { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: var(--space-2xl) var(--space-xl); text-align: center; background: var(--bg-inverse); color: var(--text-inverse); margin: var(--space-xl) 0; box-shadow: var(--shadow-hover); }
.newsletter-mesh::before { content: ''; position: absolute; top: -50%; left: -20%; width: 400px; height: 400px; background: var(--primary); border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.newsletter-mesh::after { content: ''; position: absolute; bottom: -50%; right: -20%; width: 400px; height: 400px; background: var(--accent-3); border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.mesh-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.mesh-content h2 { font-size: 2.5rem; margin-bottom: var(--space-md); color: #fff; }
.mesh-content p { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: var(--space-xl); }

.glass-form { display: flex; gap: var(--space-sm); background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 8px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.2); }
.glass-form input { flex: 1; padding: 12px 24px; color: white; font-size: 1rem; }
.glass-form input::placeholder { color: rgba(255,255,255,0.6); }
.glass-form button { background: white; color: var(--bg-inverse); padding: 12px 32px; border-radius: var(--radius-pill); font-weight: 800; cursor: pointer; transition: var(--transition); }
.glass-form button:hover { transform: scale(1.05); }

/* Section 6: Video/Multimedia */
.video-card { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; }
.video-card img { width: 100%; height: 250px; object-fit: cover; transition: var(--transition); }
.glass-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; background: rgba(255,255,255,0.2); backdrop-filter: var(--blur-md); border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; transition: var(--transition); z-index: 2; box-shadow: var(--shadow-glass); }
.video-card:hover .glass-play { background: var(--primary); border-color: var(--primary); transform: translate(-50%, -50%) scale(1.1); box-shadow: var(--primary-glow); }
.video-card:hover img { transform: scale(1.05); }

/* Section 8: UI/UX Big Feature */
.ui-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 450px; margin: var(--space-xl) 0; }
.ui-feature img { width: 100%; height: 100%; object-fit: cover; }
.ui-glass-box { position: absolute; bottom: var(--space-xl); left: var(--space-xl); max-width: 500px; background: rgba(255,255,255,0.1); backdrop-filter: var(--blur-lg); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); padding: var(--space-lg); color: white; }
.ui-glass-box h3 { font-size: 2rem; margin: var(--space-sm) 0; color: #fff; line-height: 1.2; }

/* Sidebar Specifics */
.sidebar { display: flex; flex-direction: column; gap: var(--space-lg); }
.widget { background: var(--bg-glass); backdrop-filter: var(--blur-md); padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--border-glass); box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.25rem; margin-bottom: var(--space-lg); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: var(--space-sm); }

/* Sidebar Tags */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { padding: 8px 16px; background: rgba(148, 163, 184, 0.1); border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.tag-pill:hover { background: var(--primary); color: white; }

/* Sidebar Trending */
.trend-item { display: flex; gap: var(--space-md); align-items: center; padding: var(--space-sm) 0; border-bottom: 1px solid var(--border); }
.trend-item:last-child { border-bottom: none; }
.trend-num { font-size: 2.5rem; font-family: var(--font-display); font-weight: 800; color: var(--border); line-height: 1; transition: var(--transition); }
.trend-item:hover .trend-num { color: var(--primary); transform: scale(1.1); }
.trend-item h5 { font-size: 1rem; transition: var(--transition); line-height: 1.3; }
.trend-item:hover h5 { color: var(--primary); }

/* Updated Live Feed Timeline matches image layout strictly */
.live-feed-timeline { margin-top: var(--space-md); }
.live-feed-item { 
    border-left: 3px solid rgba(79, 70, 229, 0.25); 
    padding-left: 20px; 
    padding-bottom: 30px; 
    position: relative; 
}
.live-feed-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.live-feed-item::before { 
    content: ''; 
    position: absolute; 
    left: -6.5px; /* Center perfectly on 3px border */
    top: 0px; 
    width: 10px; 
    height: 10px; 
    background: var(--primary); 
    border-radius: 50%; 
    box-shadow: 0 0 8px var(--primary-glow); 
}

/* Editorials / Quotes */
.quote-card { background: var(--bg-glass); padding: var(--space-xl); border-radius: var(--radius-lg); text-align: center; border: 1px solid var(--border-glass); position: relative; }
.quote-icon { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: var(--shadow-md); }
.quote-card blockquote { font-size: 1.25rem; font-style: italic; color: var(--text-main); margin: var(--space-md) 0; }
.quote-author img { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto var(--space-sm); border: 2px solid var(--primary); padding: 2px; }

/* Mini Cards for Sidebar */
.mini-card { padding: var(--space-sm) 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.mini-card:last-child { border-bottom: none; }
.mini-card:hover h5 { color: var(--primary); }

/* Podcasts in Sidebar */
.podcast-card { position: relative; background: var(--bg-glass); border-radius: var(--radius-md); padding: var(--space-md); border: 1px solid var(--border-glass); display: flex; align-items: center; gap: var(--space-md); transition: var(--transition); }
.podcast-card:hover { border-color: var(--primary); }
.pod-art { width: 80px; height: 80px; border-radius: var(--radius-sm); position: relative; overflow: hidden; flex-shrink: 0; }
.pod-art img { width: 100%; height: 100%; object-fit: cover; }
.pod-play { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; opacity: 0; transition: var(--transition); }
.podcast-card:hover .pod-play { opacity: 1; }

/* ==========================================================================
   7. THE READ PAGE (Single Post)
   ========================================================================== */

.post-container { max-width: 850px; margin: 0 auto; }

.post-header { text-align: center; margin-bottom: var(--space-xl); }
.post-title { font-size: 3.5rem; font-weight: 800; margin: var(--space-md) 0; line-height: 1.1; }

.post-meta-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: var(--space-xl); }
.author-info { display: flex; align-items: center; gap: var(--space-md); }
.author-info img { width: 56px; height: 56px; border-radius: 50%; }

.post-hero-img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: var(--space-xl); box-shadow: var(--shadow-md); }

.post-content { font-size: 1.25rem; line-height: 1.8; color: var(--text-muted); }
.post-content p { margin-bottom: var(--space-lg); }
.post-content h2, .post-content h3 { color: var(--text-main); margin: var(--space-xl) 0 var(--space-md); }
.post-content blockquote { border-left: 4px solid var(--primary); padding-left: var(--space-lg); font-style: italic; font-size: 1.5rem; color: var(--text-main); background: var(--bg-glass); padding: var(--space-lg); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: var(--space-xl) 0; }

.post-tags { display: flex; gap: var(--space-sm); margin: var(--space-2xl) 0; padding-top: var(--space-lg); border-top: 1px solid var(--border); }

.author-box { display: flex; gap: var(--space-lg); padding: var(--space-xl); background: var(--bg-glass); border-radius: var(--radius-lg); border: 1px solid var(--border-glass); margin-bottom: var(--space-2xl); box-shadow: var(--shadow-glass); }
.author-box img { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--primary); padding: 3px; }
.author-box h3 { font-size: 1.5rem; margin-bottom: var(--space-xs); }

.related-section { border-top: 1px solid var(--border); padding-top: var(--space-xl); margin-bottom: var(--space-xl); }

.comments-section { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: var(--space-xl); }
.comment-form { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.comment-form textarea { width: 100%; padding: var(--space-lg); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-main); resize: vertical; min-height: 120px; font-size: 1rem; transition: var(--transition); }
.comment-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

.comment-thread { display: flex; flex-direction: column; gap: var(--space-lg); }
.comment { display: flex; gap: var(--space-md); }
.comment-avatar { width: 50px; height: 50px; border-radius: 50%; }
.comment-body { flex: 1; background: var(--bg-surface); padding: var(--space-lg); border-radius: var(--radius-md); border: 1px solid var(--border); }
.comment-head { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); }
.comment-text { color: var(--text-muted); margin-bottom: var(--space-md); }
.comment-actions { display: flex; gap: var(--space-md); font-size: 0.85rem; font-weight: 600; color: var(--text-tertiary); }
.comment-actions span { display: flex; align-items: center; gap: 4px; cursor: pointer; transition: var(--transition); }
.comment-actions span:hover { color: var(--primary); }

.comment.reply { margin-left: 66px; position: relative; }
.comment.reply::before { content: ''; position: absolute; left: -33px; top: 25px; width: 25px; height: 2px; background: var(--border); }

/* ==========================================================================
   8. FOOTER & EXTRAS
   ========================================================================== */
footer { background: var(--bg-inverse); color: var(--text-inverse); padding: var(--space-2xl) 0 var(--space-lg); margin-top: var(--space-xl); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-col h4 { font-size: 1.25rem; margin-bottom: var(--space-lg); color: #fff; }
[data-theme="dark"] .footer-col h4 { color: var(--text-main); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-sm); color: var(--text-tertiary); }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-lg); display: flex; justify-content: space-between; color: var(--text-tertiary); font-size: 0.85rem; }

#go-up { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 100; transform: translateY(20px); border: none; }
#go-up.show { opacity: 1; visibility: visible; transform: translateY(0); }
#go-up:hover { background: var(--primary-hover); transform: translateY(-5px); }

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-bento { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-card:first-child { height: 400px; }
    .bento-card:not(:first-child) { height: 250px; }
    .layout-main { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .ui-feature { height: 350px; }
    .post-title { font-size: 2.5rem; }
    .bg-watermark { font-size: 10rem; }
}
@media (max-width: 768px) {
    .header-wrapper { top: 10px; }
    header { padding: 0 var(--space-md); }
    .nav-links { display: none; }
    .ticker-move { gap: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .featured-list-card { flex-direction: column; }
    .featured-list-card img { width: 100%; max-width: none; }
    .mesh-content h2 { font-size: 2rem; }
    .glass-form { flex-direction: column; border-radius: var(--radius-md); }
    .glass-form button { border-radius: var(--radius-sm); }
    .comment.reply { margin-left: 20px; }
    .comment.reply::before { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}