/* ===================================================================
 * MeusX Blog - admin panel color palette & card style
 * =================================================================== */

/* Fonts */
@font-face {
    font-family: "KiamboteFontLight";
    src: url("/fonts/main-light.ttf") format("truetype");
}
@font-face {
    font-family: "KiamboteFontRegular";
    src: url("/fonts/main-regular.ttf") format("truetype");
}
@font-face {
    font-family: "KiamboteFontBold";
    src: url("/fonts/main-bold.ttf") format("truetype");
}

/* HARD RESET: Force default Tailwind borders to zinc-900 */
*, ::before, ::after {
    border-color: #27272a !important;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'KiamboteFontRegular', sans-serif;
    background: #040405;
    color: #e4e4e7;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Inter', 'KiamboteFontBold', sans-serif; font-weight: 700; letter-spacing: -0.02em; color: #f4f4f5; }

::selection { background: rgba(16, 185, 129, 0.25); }

.text-emerald-accent { color: #10b981; }
.bg-emerald-accent { background-color: #10b981; }

/* ================================================================
 * HEADER — admin panel style
 * ================================================================ */
header {
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
    background-color: rgba(4, 4, 5, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.header-nav a {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a1a1aa;
    transition: color .2s ease;
    position: relative;
}
.header-nav a:hover { color: #f4f4f5; }
.header-nav a.active { color: #f4f4f5; }
.header-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 9999px;
    background: #10b981;
}

/* ================================================================
 * BUTTONS
 * ================================================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #10b981;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all .25s ease;
    box-shadow: 0 6px 20px -8px rgba(16, 185, 129, 0.5);
}
.btn-action:hover { background: #34d399; transform: translateY(-1px); }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(39, 39, 42, 0.4);
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 0.78rem 1.7rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all .25s ease;
}
.btn-ghost:hover { border-color: #3f3f46; color: #f4f4f5; background: #18181b; }

/* ================================================================
 * CARDS — admin panel style
 * ================================================================ */
.admin-card {
    background: rgba(24, 24, 27, 0.1);
    border: 1px solid #18181b;
    border-radius: 0.9rem;
    transition: all .25s ease;
}
.admin-card:hover {
    border-color: rgba(63, 63, 70, 0.8);
    background: rgba(24, 24, 27, 0.3);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}
.icon-tile {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.7rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    flex-shrink: 0;
    transition: all .25s ease;
}
.icon-tile.alt { background: rgba(56, 189, 248, 0.05); border-color: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.admin-card:hover .icon-tile { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }

.card-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #34d399;
}

/* ================================================================
 * SECTION HEADINGS
 * ================================================================ */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #34d399;
}
.section-eyebrow::before {
    content: '';
    width: 1.75rem;
    height: 2px;
    border-radius: 9999px;
    background: #10b981;
}
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f4f4f5;
    line-height: 1.2;
}
.section-title .accent { color: #34d399; }

/* ================================================================
 * HERO — split layout featuring the latest post
 * ================================================================ */
.hero {
    position: relative;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: -30%;
    left: 15%;
    width: 45rem;
    height: 32rem;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.07), transparent);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #34d399;
}
.hero-eyebrow::before {
    content: '';
    width: 1.75rem;
    height: 2px;
    border-radius: 9999px;
    background: #10b981;
}
/* Featured article card shown in the hero */
.hero-post {
    background: rgba(24, 24, 27, 0.12);
    border: 1px solid #18181b;
    border-radius: 1.1rem;
    overflow: hidden;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.hero-post:hover {
    border-color: rgba(63, 63, 70, 0.8);
    background: rgba(24, 24, 27, 0.3);
    box-shadow: 0 22px 50px -18px rgba(16, 185, 129, 0.18);
    transform: translateY(-4px);
}
.hero-post .cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0c0c0e;
}
.hero-post .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.hero-post:hover .cover img { transform: scale(1.05); }
.hero-post .cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(4, 4, 5, 0.85) 100%);
}

/* ================================================================
 * POST CARDS — card list (not squares)
 * ================================================================ */
.post-card {
    background: rgba(24, 24, 27, 0.1);
    border: 1px solid #18181b;
    border-radius: 1rem;
    overflow: hidden;
    transition: all .3s ease;
    display: flex;
    align-items: stretch;
}
.post-card:hover {
    border-color: rgba(63, 63, 70, 0.8);
    background: rgba(24, 24, 27, 0.3);
    box-shadow: 0 18px 44px -16px rgba(16, 185, 129, 0.15);
    transform: translateY(-3px);
}
.post-card .thumb-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #0c0c0e;
}
.post-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.post-card:hover .thumb-wrap img { transform: scale(1.05); }

.pill {
    display: inline-block;
    padding: 0.28rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
}
.tag-chip {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #71717a;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid #27272a;
}

.filter-btn {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    transition: all .25s ease;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.filter-btn:hover { color: #f4f4f5; border-color: #3f3f46; }
.filter-btn.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

/* ================================================================
 * STATS
 * ================================================================ */
.stat-card {
    background: rgba(24, 24, 27, 0.1);
    border: 1px solid #18181b;
    border-radius: 0.9rem;
    padding: 1.5rem;
    text-align: center;
    transition: all .25s ease;
}
.stat-card:hover {
    border-color: rgba(63, 63, 70, 0.8);
    background: rgba(24, 24, 27, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}
.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #34d399;
}

/* ================================================================
 * FORMS
 * ================================================================ */
.contact-input {
    background-color: rgba(24, 24, 27, 0.5);
    border: 1px solid #27272a !important;
    color: #e4e4e7;
    border-radius: 0.6rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    transition: border-color .2s ease;
}
.contact-input:focus {
    outline: none !important;
    border-color: #10b981 !important;
}
.contact-input::placeholder { color: #52525b; }

/* ================================================================
 * ARTICLE
 * ================================================================ */
.article-body h2 {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2.75rem 0 1.1rem;
    color: #f4f4f5;
    letter-spacing: -0.02em;
}
.article-body p {
    font-size: 1.075rem;
    line-height: 1.9;
    color: #d4d4d8;
    margin-bottom: 1.6rem;
}
.article-body p strong { color: #fff; font-weight: 700; }
.article-body a { color: #34d399; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
    border-left: 3px solid #10b981;
    padding: 1.25rem 1.6rem;
    margin: 2rem 0;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent 60%);
    border-radius: 0 0.8rem 0.8rem 0;
    font-style: italic;
    color: #fafafa;
    font-size: 1.15rem;
}
.article-body .media-block { margin: 2.25rem 0; }
.article-body .media-block img,
.article-body .media-block video {
    border-radius: 1rem;
    border: 1px solid #27272a;
    width: 100%;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.article-body .media-block audio { width: 100%; }
.article-body .media-caption {
    font-size: 0.82rem;
    color: #71717a;
    text-align: center;
    margin-top: 0.85rem;
}
.article-body .divider {
    border-top: 1px solid #27272a;
    margin: 3rem 0;
}

/* ================================================================
 * FOOTER
 * ================================================================ */
.blog-footer a { transition: color .2s ease; font-size: 0.875rem; }
.blog-footer a:hover { color: #34d399; }

/* ================================================================
 * ANIMATIONS
 * ================================================================ */
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slideUp { 0% { transform: translateY(24px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.fade-in { animation: fadeIn 0.9s ease-in-out; }
.slide-up { animation: slideUp 0.7s ease-out; }