/*
Theme Name: Gelu11
Theme URI: https://gelu11.ro
Description: Temă minimalistă personalizată pentru gelu11.ro — blog personal, design curat, focusat pe lectură.
Version: 3.0.0
Author: Gelu
Text Domain: gelu11
*/

/* ==========================================
   VARIABILE
   ========================================== */

:root {
  --blue:              #2E5D8E;
  --blue-hover:        #1A3F66;
  --blue-sidebar-bg:   #e8f1fb;
  --blue-sidebar-br:   #d5e4f5;
  --sidebar-w:         170px;
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  color: #1a1a1a;
  background: linear-gradient(160deg, #c8ddf0 0%, #8fb8db 40%, #5a90be 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   CARD CENTRAL — alb, de sus pana jos
   Gradientul albastru e vizibil pe laterale
   ========================================== */

.site {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 60px rgba(26, 63, 102, 0.20);
  min-height: 100vh;
}

/* ==========================================
   HEADER — albastru solid
   ========================================== */

.site-header {
  background: var(--blue);
  padding: 18px 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-navigation a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #fff;
}

/* ==========================================
   HERO PHOTO
   ========================================== */

.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #ffffff);
}

/* ==========================================
   LAYOUT — 2 COLOANE (homepage / arhiva)
   ========================================== */

.content-area {
  display: flex;
  align-items: flex-start;
}

/* Single si pagini — o singura coloana */
.content-single {
  display: block;
}

.content-single .main-content {
  max-width: 660px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.primary-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 24px 16px;
  background: var(--blue-sidebar-bg);
  border-right: 1px solid var(--blue-sidebar-br);
  align-self: stretch;
}

.primary-sidebar .widget {
  margin-bottom: 28px;
}

.primary-sidebar .widget-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--blue-sidebar-br);
}

.primary-sidebar ul {
  list-style: none;
}

.primary-sidebar ul li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.primary-sidebar ul li a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #3a5a7a;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}

.primary-sidebar ul li a:hover {
  color: var(--blue);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 24px 56px;
}

/* ==========================================
   LISTA ARTICOLE (HOMEPAGE / ARHIVA)
   ========================================== */

.post-list article {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ebebeb;
}

.post-list article:last-child {
  border-bottom: none;
}

.post-list .entry-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 7px;
}

.post-list .entry-title a {
  color: #111;
  text-decoration: none;
}

.post-list .entry-title a:hover {
  color: var(--blue);
}

.entry-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.entry-meta a {
  color: #aaa;
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--blue);
}

.entry-meta .sep {
  margin: 0 5px;
}

.post-list .entry-summary {
  font-size: 15px;
  color: #444;
  line-height: 1.72;
}

.post-list .entry-summary p {
  margin-bottom: 0;
}

/* ==========================================
   ARTICOL SINGLE
   ========================================== */

.single-post-layout .entry-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--blue);
}

.single-post-layout .entry-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #111;
}

.entry-content {
  font-size: 18px;
  line-height: 1.80;
  color: #222;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.entry-content h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.7em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 28px;
  margin-bottom: 1.5em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 24px;
  color: #555;
  font-style: italic;
  margin: 2em 0;
}

.entry-content a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  transition: color 0.15s, border-color 0.15s;
}

.entry-content a:hover {
  color: var(--blue-hover);
  border-bottom-color: var(--blue-hover);
}

.entry-content img {
  margin: 2em 0;
  border-radius: 2px;
}

.entry-content code {
  font-size: 0.85em;
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.entry-content pre {
  background: #f4f4f4;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: 4px;
  margin-bottom: 1.5em;
  font-size: 14px;
}

.entry-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #999;
}

.entry-footer a {
  color: #999;
  text-decoration: none;
}

.entry-footer a:hover {
  color: var(--blue);
}

/* ==========================================
   NAVIGARE ANTERIOR / URMATOR
   ========================================== */

.post-navigation {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #ebebeb;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.post-navigation a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.post-navigation a:hover {
  color: var(--blue);
}

.nav-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  margin-bottom: 4px;
}

/* ==========================================
   PAGINARE
   ========================================== */

.posts-pagination,
.pagination {
  margin-top: 48px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.posts-pagination a,
.posts-pagination span,
.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e0e8f0;
  color: #555;
  text-decoration: none;
}

.posts-pagination a:hover,
.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.posts-pagination .current,
.pagination .current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ==========================================
   HEADER ARHIVA / CATEGORIE
   ========================================== */

.page-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ebebeb;
}

.page-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

/* ==========================================
   404
   ========================================== */

.error-404 {
  padding: 80px 0;
  text-align: center;
}

.error-404 h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: #ebebeb;
  line-height: 1;
}

.error-404 h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.error-404 p {
  color: #666;
  font-size: 16px;
}

/* ==========================================
   FOOTER — albastru solid
   ========================================== */

.site-footer {
  background: var(--blue);
  padding: 20px 24px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .content-area {
    flex-direction: column;
  }

  .primary-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--blue-sidebar-br);
    align-self: unset;
    padding: 16px 18px;
  }

  .primary-sidebar .widget ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .primary-sidebar ul li {
    border-bottom: none;
  }

  .main-content {
    padding: 24px 18px 48px;
  }

  .content-single .main-content {
    padding: 28px 18px 56px;
  }

  .hero-photo img {
    height: 180px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .single-post-layout .entry-title {
    font-size: 26px;
  }

  .post-navigation {
    flex-direction: column;
  }

  .nav-next {
    text-align: left;
  }
}
