/*
Theme Name: TI Dark
Theme URI: https://tokeninsider.io
Description: Dark modern crypto news theme for Token Insider
Author: TI Editorial
Version: 1.0
*/

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

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

body {
  background: #0a0a0f;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #e0e0e8;
  font-size: 16px;
  line-height: 1.6;
}

a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #a78bfa; }

/* HEADER */
.site-header {
  background: #12121a;
  border-bottom: 1px solid #2a2a3a;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-logo span { color: #8b5cf6; }

.site-nav a {
  color: #9999aa;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 28px;
  transition: color 0.2s;
}

.site-nav a:hover { color: #ffffff; }
.site-nav a.active { color: #8b5cf6; }

/* MAIN CONTENT */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* FEATURED / HERO */
.hero-card {
  background: linear-gradient(135deg, #1a1025 0%, #12121a 100%);
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  transition: border-color 0.3s;
}

.hero-card:hover { border-color: #8b5cf6; }

.hero-card .cat-badge {
  display: inline-block;
  background: #8b5cf6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.hero-card h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-card h2 a { color: #ffffff; }
.hero-card h2 a:hover { color: #c4b5fd; }

.hero-card .excerpt {
  color: #8888a0;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero-card .post-meta {
  color: #6666a0;
  font-size: 13px;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  padding: 24px;
  transition: all 0.3s;
}

.card:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

.card .cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
  background: #1e1e2e;
  color: #8b5cf6;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 10px;
}

.card h3 a { color: #ffffff; }
.card h3 a:hover { color: #c4b5fd; }

.card .excerpt {
  color: #7777a0;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .post-meta {
  color: #5555a0;
  font-size: 12px;
}

/* SECTION HEADERS */
.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8b5cf6;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e1e2e;
}

/* SINGLE POST */
.single-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-wrap h1 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 15px;
}

.single-wrap .post-meta {
  color: #6666a0;
  font-size: 14px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e1e2e;
}

.single-wrap .post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #ccccdd;
}

.single-wrap .post-content p { margin-bottom: 20px; }

.single-wrap .post-categories {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #1e1e2e;
}

.single-wrap .post-categories a {
  display: inline-block;
  background: #1e1e2e;
  color: #8b5cf6;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

/* FOOTER */
.site-footer {
  background: #12121a;
  border-top: 1px solid #1e1e2e;
  padding: 30px 40px;
  text-align: center;
  color: #444466;
  font-size: 13px;
}

.site-footer a { color: #6666a0; }
.site-footer a:hover { color: #8b5cf6; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 15px; flex-direction: column; height: auto; padding: 12px 15px; }
  .site-nav { margin-top: 8px; }
  .site-nav a { margin-left: 0; margin-right: 15px; }
  .hero-card { padding: 20px; }
  .hero-card h2 { font-size: 22px; }
  .single-wrap h1 { font-size: 26px; }
}
