/* ======================================================
   Torzle Main Stylesheet
   Scope: Global UI, Cards, Navbar, Footer, Pages
   Blog-specific styles live in blog.css
   ====================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-main: #0a0f1a;
  --bg-alt: #10131a;
  --bg-card: #121826;
  --border-soft: #1f2833;

  --text-main: #ffffff;
  --text-muted: #cccccc;
  --text-dim: #aaaaaa;

  --accent: #38bdf8;
  --accent-verified: forestgreen;
  --accent-warning: #8b0000;
  --glow: rgba(56, 189, 248, 0.35);
}

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

/* ---------- Base ---------- */
body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: var(--bg-alt);
  padding: 12px 20px;
  border-bottom: 2px solid var(--border-soft);
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.navbar-search {
  display: flex;
}

.navbar-search input {
  padding: 6px 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.navbar-search button {
  padding: 6px 12px;
  border: none;
  background-color: var(--accent-verified);
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* ---------- Layout ---------- */
.main-content,
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ---------- Page Headers ---------- */
.main-header {
  text-align: center;
  margin-bottom: 40px;
}

.main-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.subheading {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: auto;
}

/* ---------- Sections ---------- */
.section {
  margin-bottom: 40px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-soft);
  padding-bottom: 8px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.card:hover {
  box-shadow: 0 0 18px var(--glow);
}

/* Card top */
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-top img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
}

.card:hover img {
  box-shadow: 0 0 20px var(--glow);
}

/* Card info */
.top-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.site-name.verified { color: var(--accent-verified); }
.site-name.unverified { color: var(--accent-warning); }

.badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.badge.verified { background: var(--accent-verified); }
.badge.unverified { background: var(--accent-warning); }

/* Buttons */
.visit-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
}

.visit-btn.verified { background: var(--accent-verified); }
.visit-btn.unverified { background: var(--accent-warning); }

/* ---------- Card Description ---------- */
.card-description {
  margin-top: 12px;
  padding: 12px;
  font-size: 0.9rem;
  color: #ddd;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.card:hover .card-description {
  max-height: 260px;
  opacity: 1;
}

/* ---------- Banners ---------- */
.banners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.banner {
  background: var(--border-soft);
  height: 120px;
  border-radius: 6px;
  transition: transform 0.2s;
}

.banner:hover {
  transform: scale(1.05);
}

/* ---------- Guides ---------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.guide-box {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

.guide-box:hover {
  transform: translateY(-5px);
}
    /* Clean table styling */
    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1em;
    }
    th, td {
      border: 1px solid #ccc;
      padding: 0.75em;
      text-align: left;
    }
    th {
      background-color: #f5f5f5;
    }
    caption {
      caption-side: top;
      text-align: left;
      font-weight: bold;
      margin-bottom: 0.5em;
      font-size: 1.1em;
    }
    .feature-description {
      margin-top: 1em;
    }
    .feature-description h3 {
      margin-bottom: 0.25em;
    }
    .feature-description p {
      margin: 0 0 1em 0;
    }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  padding: 24px 0;
  margin-top: 60px;
  border-top: 2px solid var(--border-soft);
  text-align: center;
}

.footer-links a {
  margin: 0 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 10px;
  }

  .main-header h1 {
    font-size: 1.9rem;
  }
}
