/* ═══════════════════════════════════════════
   Thai Night Spot - Main Stylesheet
   Editorial magazine design
   Accent: #dc2626 / Fonts: Outfit + DM Serif Display
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #dc2626;
    --red-light: #ef4444;
    --red-dark: #b91c1c;
    --red-bg: rgba(220, 38, 38, 0.04);
    --red-border: rgba(220, 38, 38, 0.15);
    --black: #111111;
    --gray-900: #1a1a1a;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
    --radius: 6px;
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 400; font-size: 15px; line-height: 1.7;
    color: var(--gray-700); background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ─── Top Bar ─── */
.topbar { background: var(--black); color: var(--gray-500); font-size: 0.7rem; letter-spacing: 0.5px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gray-400); font-weight: 500; }
.topbar a:hover { color: var(--white); }

/* ─── Header ─── */
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--red); letter-spacing: -0.3px; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 6px 14px; color: var(--gray-500); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.3px; text-transform: uppercase; border-radius: 4px; }
.main-nav a:hover { color: var(--black); }
.main-nav a.active { color: var(--red); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--gray-700); margin: 4px 0; }

/* ─── Hero ─── */
.hero { background: var(--black); color: var(--white); padding: 5rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(220,38,38,0.08) 0%, transparent 60%), radial-gradient(ellipse 60% 80% at 80% 20%, rgba(220,38,38,0.05) 0%, transparent 50%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; text-align: center; max-width: 750px; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.65rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--red-light); margin-bottom: 2rem; padding: 6px 18px; border: 1px solid rgba(220,38,38,0.25); border-radius: 100px; background: rgba(220,38,38,0.06); }
.hero-label .dot { width: 5px; height: 5px; background: var(--red); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); } 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } }
.hero h2 { font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; line-height: 1.2; margin-bottom: 1.25rem; letter-spacing: -0.5px; }
.hero h2 a { color: inherit; }
.hero h2 a:hover { color: var(--red-light); }
.hero p { font-weight: 300; font-size: 1rem; color: rgba(255,255,255,0.45); line-height: 1.8; max-width: 520px; margin: 0 auto; }

/* ─── Section ─── */
.section { padding: 4rem 0; }
.section--alt { background: var(--gray-50); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.section-header h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--black); position: relative; padding-left: 14px; }
.section-header h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--red); border-radius: 2px; }
.section-header a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gray-400); }
.section-header a:hover { color: var(--red); }

/* ─── Cards ─── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); border: 1px solid transparent; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gray-200); }
.card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 1.25rem 0.5rem; }
.card-category { display: inline-block; font-size: 0.62rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem; }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; line-height: 1.35; color: var(--black); margin-bottom: 0.5rem; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--red); }
.card-excerpt { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 0.75rem; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--gray-400); letter-spacing: 0.3px; }
.cat-safety { color: #16a34a; } .cat-culture { color: #d97706; } .cat-news { color: #dc2626; } .cat-city-guide { color: #2563eb; }

/* ─── News Feed ─── */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-100); align-items: center; }
.news-thumb { width: 80px; height: 56px; border-radius: 4px; overflow: hidden; background: var(--gray-100); flex-shrink: 0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-title { font-weight: 500; font-size: 0.9rem; color: var(--black); line-height: 1.4; }
.news-title a { color: inherit; } .news-title a:hover { color: var(--red); }
.news-source { font-size: 0.7rem; color: var(--gray-400); margin-top: 3px; }
.news-time { font-size: 0.7rem; color: var(--gray-400); white-space: nowrap; }

/* ─── Video Grid ─── */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.video-card { position: relative; display: block; color: var(--black); }
.video-card-thumb { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--gray-900); position: relative; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--transition); }
.video-card:hover .video-card-thumb img { opacity: 1; }
.video-card-platform { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 3px; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; color: white; }
.platform-youtube { background: rgba(204,0,0,0.9); } .platform-tiktok { background: rgba(0,0,0,0.8); }
.video-card-title { font-weight: 500; font-size: 0.85rem; margin-top: 0.6rem; line-height: 1.4; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 1.5rem 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-embed--tt { padding-bottom: 0; height: auto; }

/* ─── Article Detail ─── */
.article-header { padding: 3rem 0 2rem; }
.article-header .container { max-width: 800px; }
.article-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; line-height: 1.2; color: var(--black); margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; font-size: 0.8rem; color: var(--gray-400); padding-bottom: 2rem; border-bottom: 1px solid var(--gray-200); }
.article-content { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.article-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin: 2.5rem 0 1rem; color: var(--black); }
.article-content h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--gray-800); }
.article-content p { margin-bottom: 1.25rem; }
.article-content a { color: var(--red); border-bottom: 1px solid var(--red-border); }
.article-content a:hover { border-color: var(--red); }
.article-content blockquote { border-left: 2px solid var(--red); padding: 0.75rem 1.5rem; margin: 1.5rem 0; background: var(--red-bg); font-size: 0.95rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-featured-img { max-width: 800px; margin: 0 auto 2rem; border-radius: var(--radius); overflow: hidden; }

/* ─── Wiki Related ─── */
.wiki-related { max-width: 800px; margin: 3rem auto; padding: 1.5rem; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-200); }
.wiki-related h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; color: var(--black); }
.wiki-cards { display: grid; gap: 0.75rem; }
.wiki-card { display: flex; gap: 1rem; padding: 0.6rem; border-radius: 4px; border: 1px solid var(--gray-200); background: var(--white); color: var(--black); }
.wiki-card:hover { border-color: var(--red-border); }
.wiki-card img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.wiki-card-body strong { font-size: 0.85rem; display: block; margin-bottom: 2px; }
.wiki-card-body p { font-size: 0.75rem; color: var(--gray-500); line-height: 1.5; margin: 0; }
.wiki-attr { font-size: 0.65rem; color: var(--gray-400); }

/* ─── Breadcrumb / Pagination / Tabs ─── */
.breadcrumb { padding: 1rem 0; font-size: 0.78rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; }
.breadcrumb li::after { content: '/'; margin-left: 0.4rem; color: var(--gray-300); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--gray-400); } .breadcrumb a:hover { color: var(--red); }
.breadcrumb-current { color: var(--gray-400); }

.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2.5rem 0; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--gray-200); color: var(--gray-500); }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }

.filter-tabs { display: flex; gap: 6px; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-tab { padding: 6px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 500; border: 1px solid var(--gray-200); color: var(--gray-500); background: none; text-decoration: none; cursor: pointer; }
.filter-tab:hover, .filter-tab.active { border-color: var(--red); color: var(--red); background: var(--red-bg); }

/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--black); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-400); font-size: 0.9rem; }

/* ─── Footer ─── */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 1.5rem 0; margin-top: 4rem; text-align: center; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.footer-links a { color: var(--gray-400); font-size: 0.8rem; } .footer-links a:hover { color: var(--white); }
.footer-sep { color: rgba(255,255,255,0.15); font-size: 0.75rem; }
.footer-copy { font-size: 0.72rem; color: var(--gray-500); }

/* ─── Responsive ─── */
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .topbar { display: none; }
    .site-header .container { height: 56px; } .logo-text { font-size: 1.25rem; }
    .main-nav { display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; padding: 2rem; gap: 0.5rem; z-index: 99; border-top: 1px solid var(--gray-200); }
    .main-nav.open { display: flex; } .main-nav a { font-size: 1rem; padding: 0.75rem 0; text-transform: none; }
    .nav-toggle { display: block; }
    .hero { padding: 3rem 0; } .hero h2 { font-size: 1.8rem; }
    .card-grid { grid-template-columns: 1fr; gap: 1.5rem; } .video-grid { grid-template-columns: 1fr 1fr; }
    .article-title { font-size: 1.8rem; }
    .news-item { grid-template-columns: 1fr; } .news-thumb, .news-time { display: none; }
    .container { padding: 0 1.25rem; }
}
@media (max-width: 480px) { .hero h2 { font-size: 1.5rem; } .article-title { font-size: 1.4rem; } .video-grid { grid-template-columns: 1fr; } }