/*
Theme Name: Metaverse Theme
Description: Theme custom metaverse
Version: 1.0
Author: AIverse
*/

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Inter, sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
#site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    position: sticky;
    top: 0;
    z-index: 100;
}
#site-header .logo {
    font-family: Syne, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
}
#site-header nav a {
    margin-left: 28px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    transition: color .2s;
}
#site-header nav a:hover { color: #6366f1; }

/* ── MAIN GRID ── */
#main {
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 24px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── CARD ── */
.card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
.card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #6366f1);
    flex-shrink: 0;
}
.card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform .4s;
}
.card:hover .card-thumb img { transform: scale(1.06); }

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-cat {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.card-title {
    font-family: Syne, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.card-title a:hover { color: #6366f1; }
.card-excerpt {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}
.card-meta {
    font-size: .78rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}

/* ── PAGINATION ── */
.pagination {
    text-align: center;
    margin-top: 48px;
}
.pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-weight: 500;
    font-size: .9rem;
    transition: all .2s;
    color: #1a1a1a;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* ── SINGLE ── */
.single-wrap {
    max-width: 800px;
    margin: 48px auto;
    padding: 0 24px;
}
.single-thumb {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 32px;
}
.single-cat { margin-bottom: 16px; display: block; }
.single-title {
    font-family: Syne, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.single-meta {
    font-size: .85rem;
    color: #9ca3af;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}
.single-content { font-size: 1.05rem; line-height: 1.85; }
.single-content h2 {
    font-family: Syne, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
}
.single-content h3 {
    font-family: Syne, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 12px;
}
.single-content p { margin-bottom: 20px; }

/* ── FOOTER ── */
#site-footer {
    background: #111;
    color: #9ca3af;
    text-align: center;
    padding: 32px;
    margin-top: 80px;
    font-size: .85rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
    #site-header { padding: 0 20px; }
    .single-title { font-size: 1.6rem; }
}

/* ── MENU NAV ── */
#site-nav ul.nav-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
#site-nav ul.nav-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#site-nav ul.nav-menu li a {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
}
#site-nav ul.nav-menu li a:hover {
    color: #6366f1 !important;
    background: #f5f3ff !important;
}
/* Cacher sous-menus */
#site-nav ul.nav-menu ul {
    display: none !important;
}
