/*
Theme Name: TripiGo Blog
Theme URI: https://www.tripigo.ro/blog
Description: Temă minimă pentru blogul TripiGo. Meniu simplu sus, grid de articole cu poză, titlu, excerpt și buton „Citește". Construită să intre în tonul site-ului principal.
Author: TripiGo
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tripigo-blog
*/

/* ============================================================
   1. VARIABILE — schimbă aici culoarea de brand și fontul.
   Astea sunt SINGURELE linii pe care trebuie să le atingi
   ca să potrivești blogul cu site-ul.
   ============================================================ */
:root {
  --brand:        #0ea5a5;   /* culoarea butoanelor/accentelor — pune hex-ul TripiGo */
  --brand-dark:   #0b7d7d;   /* varianta mai închisă, pentru hover */
  --text:         #1f2937;   /* text principal */
  --text-muted:   #6b7280;   /* excerpt, date */
  --bg:           #f7f8fa;   /* fundal pagină */
  --card-bg:      #ffffff;   /* fundal card */
  --border:       #e5e7eb;   /* linii subtile */
  --radius:       14px;      /* rotunjimea colțurilor */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============================================================
   2. RESET & BAZĂ
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   3. HEADER / MENIU (ca la site)
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo img { height: 38px; width: auto; }
.site-logo .site-title-text {
  font-weight: 700;
  font-size: 22px;
  color: var(--brand);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: color .15s;
}
.main-nav a:hover { color: var(--brand); }

/* ============================================================
   4. TITLU SECȚIUNE
   ============================================================ */
.page-intro {
  padding: 44px 0 8px;
  text-align: center;
}
.page-intro h1 {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 800;
}
.page-intro p {
  color: var(--text-muted);
  margin: 0;
  font-size: 17px;
}

/* ============================================================
   5. GRID DE ARTICOLE (carduri ca pe site)
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 34px 0 60px;
}

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.09);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}
.card-title a:hover { color: var(--brand); }

.card-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 18px;
  flex: 1;
}

.btn-read {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background .15s;
}
.btn-read:hover { background: var(--brand-dark); }

/* ============================================================
   6. ARTICOL SINGUR
   ============================================================ */
.single-post {
  background: #fff;
  max-width: 760px;
  margin: 40px auto 60px;
  padding: 0 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.single-hero {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #eef1f4;
}
.single-hero img { width: 100%; height: 100%; object-fit: cover; }
.single-inner { padding: 34px 40px 0; }
.single-inner h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.25; }
.single-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.single-content { font-size: 17px; }
.single-content p { margin: 0 0 18px; }
.single-content img { border-radius: 10px; margin: 20px 0; }
.single-content h2 { font-size: 24px; margin: 32px 0 12px; }
.single-content h3 { font-size: 20px; margin: 26px 0 10px; }
.single-content a { color: var(--brand); text-decoration: underline; }

.back-link {
  display: inline-block;
  margin: 30px 40px 0;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
}

/* CTA spre platformă — transformă cititorul în client */
.tour-cta {
  margin: 34px 40px 0;
  padding: 22px 24px;
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff);
  border-radius: var(--radius);
}
.tour-cta h3 { margin: 0 0 6px; font-size: 18px; }
.tour-cta p { margin: 0 0 14px; color: var(--text-muted); font-size: 15px; }

/* ============================================================
   7. PAGINARE
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 60px;
}
.pagination .page-numbers {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.pagination .page-numbers.current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { height: 34px; margin: 0 auto 16px; opacity: .9; }

/* ============================================================
   9. STĂRI GOALE
   ============================================================ */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
