/*
Theme Name: EdoTec Blog
Description: Tema premium EdoTec v3
Version: 3.0
*/

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f7f7f8;
  color: #1a1a1a;
}

/* ===== HEADER ALB PREMIUM ===== */
#site-header {
  background: #ffffff;
  padding: 0;
  border-bottom: 1px solid #ebebeb;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img {
  height: 38px;
  width: auto;
  display: block;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-phone {
  font-size: 15px;
  color: #555;
  font-weight: 500;
}
.header-phone a {
  color: #e8192c;
  text-decoration: none;
  font-weight: 700;
}
.header-shop-btn {
  background: #e8192c;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}
.header-shop-btn:hover { background: #c0141f !important; }

/* ===== BARA ROSIE NAV ===== */
#site-nav {
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #e8192c;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}
#site-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  display: block;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: color 0.2s;
}
#site-nav a:first-child { color: #fff; }
#site-nav a:hover { color: #e8192c; }
#site-nav a.nav-shop {
  margin-left: auto;
  color: #e8192c;
}
#site-nav a.nav-shop:hover { color: #fff; }

/* ===== HERO SECTION ===== */
.blog-hero {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 40%, #2a0a0a 100%);
  color: #fff;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(232,25,44,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.blog-hero h1 span { color: #e8192c; }
.blog-hero p {
  color: #888;
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== MAIN ===== */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 40px 80px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e8192c;
  margin-bottom: 12px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #ebebeb;
}

/* ===== FEATURED POST (primul articol mare) ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* ===== CARD ===== */
.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.post-card-img {
  display: block;
  height: 230px;
  overflow: hidden;
  background: #111;
  position: relative;
}
.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.post-card:hover .post-card-img img { transform: scale(1.07); }

.card-category-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #e8192c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(232,25,44,0.4);
}

.post-card-body {
  padding: 24px 24px 16px;
  flex: 1;
}
.post-card-body h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.post-card-body h2 a { color: #1a1a1a; text-decoration: none; }
.post-card-body h2 a:hover { color: #e8192c; }
.post-card-body p { color: #777; font-size: 14px; line-height: 1.7; }

.post-meta {
  padding: 14px 24px;
  border-top: 1px solid #f2f2f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  font-size: 13px;
  font-weight: 600;
}
.author-initial {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8192c, #c0141f);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.meta-date { color: #bbb; font-size: 12px; }

/* ===== SINGLE POST ===== */
.single-post-wrap {
  max-width: 840px;
  margin: 48px auto;
  padding: 0 24px 80px;
}
.single-post-wrap article {
  background: #fff;
  border-radius: 20px;
  padding: 52px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
.breadcrumb {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}
.breadcrumb a { color: #e8192c; text-decoration: none; }
.single-post-wrap .post-category {
  display: inline-block;
  background: #fff0f0;
  color: #e8192c;
  border: 1.5px solid #e8192c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  margin-bottom: 16px;
}
.single-post-wrap h1 {
  font-size: 32px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #f2f2f2;
  border-bottom: 2px solid #f2f2f2;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.author-box { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8192c, #c0141f);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 15px; color: #1a1a1a; }
.author-role { font-size: 12px; color: #aaa; margin-top: 2px; }
.post-date { color: #bbb; font-size: 13px; margin-left: auto; }

.entry-content { line-height: 1.9; color: #333; font-size: 16px; }
.entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 14px;
  color: #1a1a1a;
  padding-left: 14px;
  border-left: 4px solid #e8192c;
  letter-spacing: -0.3px;
}
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 14px 0 20px 24px; }
.entry-content li { margin-bottom: 10px; line-height: 1.7; }
.entry-content a { color: #e8192c; font-weight: 500; }
.entry-content strong { color: #1a1a1a; font-weight: 700; }

/* ===== PAGINATION ===== */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.nav-links a, .nav-links span {
  padding: 10px 22px;
  border-radius: 10px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: all 0.2s;
}
.nav-links a:hover { background: #e8192c; color: #fff; box-shadow: 0 4px 16px rgba(232,25,44,0.3); }

/* ===== FOOTER ===== */
#site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 52px 24px;
}
#site-footer img {
  height: 44px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
  opacity: 0.9;
}
#site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}
#site-footer .footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
#site-footer .footer-links a:hover { color: #e8192c; }
#site-footer p { color: #444; font-size: 13px; margin-top: 16px; }

@media (max-width: 768px) {
  .header-inner { padding: 16px 20px; }
  .header-right { gap: 12px; }
  .header-phone { display: none; }
  .main-container { padding: 32px 20px 60px; }
  .blog-hero { padding: 50px 20px; }
  .blog-hero h1 { font-size: 30px; }
  #site-nav .nav-inner { padding: 0 20px; overflow-x: auto; }
  .single-post-wrap article { padding: 28px; }
  .single-post-wrap h1 { font-size: 24px; }
}


/* ===== HERO CU IMAGINE ===== */
.blog-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://blog.edotec.ro/wp-content/uploads/hero-interior.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.hero-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e8192c;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.blog-hero h1 span { color: #e8192c; }
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-btn {
  display: inline-block;
  background: #e8192c;
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(232,25,44,0.4);
  transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover { background: #c0141f; transform: translateY(-2px); }
@media (max-width: 640px) {
  .blog-hero { min-height: 320px; }
  .blog-hero h1 { font-size: 34px; }
}

/* ===== CAROUSEL MOBIL ===== */
@media (max-width: 768px) {
  .posts-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .posts-grid::-webkit-scrollbar { display: none; }
  .posts-grid .post-card {
    min-width: 80vw !important;
    max-width: 80vw !important;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  /* Indicatoare scroll */
  .posts-grid::after {
    content: '';
    min-width: 16px;
    flex-shrink: 0;
  }
  /* Hint vizual - umbra dreapta */
  .main-container {
    position: relative;
  }
}

/* Auto-scroll animation hint pe mobil */
@keyframes scroll-hint {
  0% { transform: translateX(0); }
  20% { transform: translateX(-40px); }
  40% { transform: translateX(0); }
  100% { transform: translateX(0); }
}

/* Hero text fixes */
.hero-label {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
.hero-sub {
  color: #f0f0f0 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9) !important;
}
.hero-content { position: relative; z-index: 2; }
.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
  pointer-events: none;
}
.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1;
}

/* ===== HOTSPOTS ===== */
.hotspot {
  position: absolute;
  z-index: 10;
  cursor: pointer;
}
.hotspot-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.hotspot-dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0.4;
  animation: hotspot-pulse 2s infinite;
}
.hotspot-dot::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  opacity: 0.15;
  animation: hotspot-pulse 2s infinite 0.3s;
}
@keyframes hotspot-pulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0.1; }
  100% { transform: scale(0.8); opacity: 0.4; }
}

/* Navigatie - albastru */
.nav-dot { background: #0099ff; box-shadow: 0 0 10px #0099ff; }
.nav-dot::before { background: #0099ff; }
.nav-dot::after { background: #0099ff; }

/* Ambient - galben/portocaliu */
.ambient-dot { background: #f0a500; box-shadow: 0 0 10px #f0a500; }
.ambient-dot::before { background: #f0a500; }
.ambient-dot::after { background: #f0a500; }

/* BSD - portocaliu */
.bsd-dot { background: #ff6b00; box-shadow: 0 0 10px #ff6b00; }
.bsd-dot::before { background: #ff6b00; }
.bsd-dot::after { background: #ff6b00; }

/* Popup */
.hotspot-popup {
  display: none;
  position: absolute;
  left: 26px;
  top: -20px;
  width: 220px;
  background: rgba(10,12,20,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 20;
}
.hotspot-popup.popup-right {
  left: 26px;
}
.hotspot.active .hotspot-popup { display: block; }
.hotspot:hover .hotspot-dot { transform: scale(1.2); }
.popup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.popup-desc {
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 10px;
}
.popup-btn {
  display: inline-block;
  background: #e8192c;
  color: #fff;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.popup-btn:hover { background: #c0141f; }

/* Line connector */
.hotspot-popup::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 28px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid rgba(10,12,20,0.96);
}

@media (max-width: 600px) {
  .hotspot { display: none; }
}
