
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --background: #09090b;
    --surface: #18181b;
    --surface-hover: #27272a;
    --text: #f8fafc;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --glass-bg: rgba(24, 24, 27, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', system-ui, sans-serif; 
    background: var(--background); 
    color: var(--text); 
    line-height: 1.7; 
    overflow-x: hidden;
}
a { color: var(--primary-light); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #fff; }

/* Header & Nav */
header { 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 50;
    flex-wrap: wrap;
}
.logo { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 900; color: #fff; letter-spacing: -0.5px;}
.logo span { color: var(--primary-light); }
.menu-toggle { display: none; background: transparent; border: none; color: #fff; cursor: pointer; padding: 0.5rem; }
.menu-toggle svg { width: 28px; height: 28px; }

nav ul { list-style: none; display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center;}
nav a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); position: relative; padding-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; font-family: 'Outfit', sans-serif;}
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--primary-light); transition: width 0.3s ease;
}
nav a:hover { color: #fff; }
nav a:hover::after { width: 100%; }

/* Hero Section */
.hero { 
    padding: 8rem 2rem 6rem; 
    text-align: center; 
    background: radial-gradient(ellipse at top, rgba(79, 70, 229, 0.15), var(--background) 70%), var(--background);
    position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg opacity="0.03" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="2" cy="2" r="2" fill="white"/></svg>') repeat;
    pointer-events: none;
}
.hero-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { 
    font-family: 'Outfit', sans-serif; 
    font-size: 5rem; 
    font-weight: 900; 
    margin-bottom: 1.5rem; 
    line-height: 1.1; 
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}
.hero p { font-size: 1.35rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; font-weight: 300; }
.hero-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;}
.hero-badges .badge {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem; border-radius: 50px; font-size: 0.9rem; color: var(--primary-light);
    font-family: 'Outfit', sans-serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

/* Main Container & Grid */
.container { max-width: 1250px; margin: 0 auto; padding: 4rem 2rem; }
.category-section { margin-bottom: 6rem; }
.category-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 3rem; }
.category-title { 
    font-family: 'Outfit', sans-serif; font-size: 1.8rem; color: #fff; font-weight: 800; 
    display: inline-flex; align-items: center; gap: 0.75rem; margin: 0;
}
.category-title::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2.5rem; }

/* Expert Featured Card */
.featured-card { 
    grid-column: 1 / -1; 
    display: grid; 
    grid-template-columns: 1.3fr 1fr; 
    background: var(--surface); 
    border: 1px solid var(--border);
    border-radius: 24px; 
    overflow: hidden; 
    transition: all 0.4s ease;
}
.featured-card:hover { border-color: var(--primary); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7); transform: translateY(-5px); }
.featured-card .card-image { width: 100%; height: 100%; min-height: 400px; border-bottom: none; border-right: 1px solid var(--border); }
.featured-card .card-content { padding: 4rem 3rem; justify-content: center; }
.featured-card .badge { display: inline-block; background: rgba(79, 70, 229, 0.1); color: var(--primary-light); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.5rem; border: 1px solid rgba(79, 70, 229, 0.2); }
.featured-card h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }

/* Normal Cards */
.card { 
    background: var(--surface); 
    border: 1px solid var(--border);
    border-radius: 20px; 
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    flex-direction: column;
    color: inherit; 
    position: relative;
}
.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.6);
    border-color: rgba(129, 140, 248, 0.5);
}
.card-image { width: 100%; height: 240px; object-fit: cover; border-bottom: 1px solid var(--border); background: var(--surface-hover); }
.card-image-placeholder { width: 100%; height: 240px; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.card-image-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }

.card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card h2 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; margin-bottom: 1.5rem; color: #fff; line-height: 1.4; font-weight: 600; }
.card-footer { margin-top: auto; display: flex; align-items: center; color: var(--primary-light); font-weight: 600; font-size: 0.95rem; font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: 1px;}
.card-footer svg { width: 18px; height: 18px; margin-left: 8px; transition: transform 0.3s; }
.card:hover .card-footer svg { transform: translateX(5px); }

/* Wide Expert Layout for Post/Page */
.content-wrapper { 
    max-width: 1000px; 
    margin: 4rem auto; 
    padding: 4rem; 
    background: var(--surface); 
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
    border: 1px solid var(--border);
}
.content-wrapper h1 { font-family: 'Outfit', sans-serif; font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; color: #fff; }
.content-wrapper .meta-info { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.content-wrapper img { max-width: 100%; height: auto; border-radius: 12px; margin: 2rem 0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }
.content-wrapper p { margin-bottom: 1.5rem; font-size: 1.15rem; color: #cbd5e1; }
.content-wrapper h2 { font-family: 'Outfit', sans-serif; margin-top: 3rem; margin-bottom: 1.5rem; color: #fff; font-size: 2rem; }
.content-wrapper h3 { font-family: 'Outfit', sans-serif; margin-top: 2.5rem; margin-bottom: 1rem; color: #f1f5f9; font-size: 1.5rem; }

/* Lists */
.content-wrapper ul, .content-wrapper ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #cbd5e1; font-size: 1.15rem; }
.content-wrapper li { margin-bottom: 0.8rem; padding-left: 0.5rem; line-height: 1.6; }
.content-wrapper ul li::marker { color: var(--primary-light); font-size: 1.2rem; }
.content-wrapper ol li::marker { color: var(--primary-light); font-weight: 700; font-family: 'Outfit', sans-serif; }

/* Tables */
.content-wrapper table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 2.5rem 0; 
    display: block; 
    overflow-x: auto; 
    white-space: nowrap; 
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}
.content-wrapper th, .content-wrapper td { 
    padding: 1.2rem 1.5rem; 
    border: 1px solid var(--border); 
    text-align: left; 
    color: #cbd5e1;
    font-size: 1.05rem;
}
.content-wrapper th { 
    background: rgba(79, 70, 229, 0.1); 
    color: var(--primary-light); 
    font-family: 'Outfit', sans-serif; 
    font-weight: 600; 
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.content-wrapper tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.content-wrapper tbody tr:hover { background: rgba(79, 70, 229, 0.05); }

.content-wrapper blockquote { border-left: 4px solid var(--primary); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: #94a3b8; }
.content-wrapper figure { margin: 2rem 0; text-align: center; }
.content-wrapper figcaption { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.content-wrapper iframe { max-width: 100%; }
.content-wrapper .custom-box { background: rgba(79, 70, 229, 0.05); padding: 2rem; border-radius: 16px; border: 1px solid rgba(79, 70, 229, 0.2); margin: 2rem 0; }

/* Like Dislike Module */
.interaction-module { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;}
.btn-like, .btn-dislike { 
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem 2rem; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1.1rem; 
    font-family: 'Inter', sans-serif;
}
.btn-like { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.btn-like:hover { background: rgba(34, 197, 94, 0.2); transform: translateY(-3px); }
.btn-like.active { background: #4ade80; color: #18181b; }
.btn-dislike { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-dislike:hover { background: rgba(239, 68, 68, 0.2); transform: translateY(-3px); }
.btn-dislike.active { background: #f87171; color: #18181b; }

/* 404 Page */
.error-404 { text-align: center; padding: 10rem 2rem; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.error-404 h1 { font-family: 'Outfit', sans-serif; font-size: 8rem; color: var(--primary-light); margin-bottom: 1rem; line-height: 1; text-shadow: 0 0 20px rgba(129, 140, 248, 0.3); }
.error-404 h2 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.error-404 p { font-size: 1.2rem; margin-bottom: 2.5rem; color: var(--text-muted); }
.error-404 a { display: inline-block; padding: 1rem 2.5rem; background: var(--primary); color: #fff; border-radius: 50px; font-weight: 600; text-transform: uppercase; font-family: 'Outfit', sans-serif; letter-spacing: 1px; transition: all 0.3s; }
.error-404 a:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(129, 140, 248, 0.3); }

/* Footer */
footer { background: var(--background); border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; margin-top: 6rem; }
.footer-grid { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; margin-bottom: 3rem; text-align: left; }
.footer-widget h3 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; margin-bottom: 1.5rem; color: #fff; }
.footer-widget p { color: var(--text-muted); line-height: 1.6; font-size: 1.05rem;}
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 0.85rem; padding-left: 0; }
.footer-widget a { color: var(--text-muted); transition: color 0.3s; font-size: 1.05rem;}
.footer-widget a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; letter-spacing: -1px; }
    .hero p { font-size: 1.15rem; }
    .content-wrapper { padding: 2rem; margin: 2rem 1rem; border-radius: 16px; }
    .content-wrapper h1 { font-size: 2.2rem; }
    .content-wrapper p { font-size: 1.05rem; }
    
    .menu-toggle { display: block; }
    nav { width: 100%; display: none; margin-top: 1rem; }
    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 0; background: var(--surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--border);}
    nav a { display: block; padding: 1rem; border-bottom: 1px solid var(--border); }
    nav a::after { display: none; }
    nav li:last-child a { border-bottom: none; }
}
