/*
Theme Name: Monden.ro
Theme URI: https://monden.ro/
Author: Numele tau
Author URI: https://monden.ro/
Description: Tema WordPress pentru site-ul de știri Monden.ro
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mondenro
*/

/* RESET DE BAZĂ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #000;
  background-color: #fff;
  line-height: 1.6;
}

/* Linkuri */
a {
  color: #145ebb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Heading-uri */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  font-weight: 600;
}

/* Elemente text */
p {
  margin-bottom: 1em;
}
blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  background: #f9f9f9;
  border-left: 4px solid #145ebb;
}
ul, ol {
  margin: 0 0 1em 2em;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
table, td, th {
  border: 1px solid #ccc;
  padding: 8px;
}

/* ========================= */
/*       CONTAINERE         */
/* ========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0; /* Fără padding lateral pe desktop */
}

/* ========================= */
/*         HEADER           */
/* ========================= */

.site-header {
  width: 100%;
  background-color: #145ebb;
  color: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

.site-branding {
  font-size: 1.5em;
  font-weight: bold;
}
.site-branding a {
  color: #fff;
  text-decoration: none;
}

/* Meniul desktop */
.desktop-menu ul {
  display: flex;
  list-style: none;
  gap: 20px;
}
.desktop-menu ul li {
  position: relative; /* pt submeniuri */
}
.desktop-menu ul li a {
  color: #fff;
  font-weight: bold;
  font-size: 1em;
  padding: 5px 0;
  display: inline-block;
}

/* Submeniu Desktop */
.desktop-menu ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: #145ebb;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.desktop-menu ul li ul.sub-menu li {
  width: 100%;
}
.desktop-menu ul li ul.sub-menu li a {
  padding: 5px 15px;
  color: #fff;
  font-size: 0.9em;
}
.desktop-menu ul li:hover > ul.sub-menu {
  display: block;
}

/* Săgeată submeniu (desktop) */
.desktop-menu ul li.menu-item-has-children > a::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-left: 5px;
  font-size: 0.8em;
}

/* Buton burger (mobil) */
.nav-toggle {
  display: none;
  font-size: 1.4em;
  cursor: pointer;
  color: #fff;
}

/* ========================= */
/*    MOBILE MENU OVERLAY   */
/* ========================= */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #145ebb;
  display: none; 
  z-index: 9999;
}
.mobile-menu-overlay.active {
  display: block;
}
.overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
  overflow-y: auto;
}
.close-overlay {
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav ul li {
  position: relative;
}
.mobile-nav ul li a {
  color: #fff;
  font-size: 1.2em;
  padding: 10px 0;
  display: inline-block;
}

/* Submeniu mobil ascuns */
.mobile-nav ul li ul.sub-menu {
  display: none;
  flex-direction: column;
  background-color: rgba(0,0,0,0.2);
  margin-left: 15px;
  padding: 10px;
}
.mobile-nav ul li ul.sub-menu li a {
  font-size: 1em;
}

/* Săgeată submeniu (mobil) */
.mobile-nav ul li.menu-item-has-children > a::after {
  content: "\f107"; 
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-left: 5px;
  font-size: 0.8em;
}

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

.site-main {
  width: 100%;
  background-color: #fff;
}

/* ========================= */
/*         FOOTER           */
/* ========================= */

.site-footer {
  width: 100%;
  background-color: #145ebb;
  color: #fff;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.footer-widgets .widget-area h4 {
  margin-bottom: 10px;
  font-size: 1.2em;
}
.footer-widgets .widget-area p {
  font-size: 0.9em;
  line-height: 1.4em;
  color: #333;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  margin: 0;
}

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

.sidebar {
  width: 300px;
  background-color: #f5f5f5;
  padding: 10px;
  margin-left: 20px;
}
.sidebar .widget {
  margin-bottom: 20px;
}

/* ========================= */
/*        HERO (3)          */
/* ========================= */

/* Primul articol mare => imagine "large" 
   Cele 2 din dreapta => imagine "medium" 
   + max-width 200px pe desktop
*/
.hero {
  margin-bottom: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-side-item {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  gap: 10px;
}

/* Imaginile mici (dreapta) => max 200px pe desktop */
.hero-side-item img {
  max-width: 292px;
  height: auto;
  object-fit: cover;
}

/* ========================= */
/*  4 ARTICOLE (cat=13747)  */
/* ========================= */

.articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
  margin-bottom: 40px;
}
.article-item-4 {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  flex-direction: column; 
  gap: 10px;
}
.article-item-4 img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========================= */
/* 5 ARTICOLE (cat=13750)   */
/* 1 mare stânga + 4 dreapta (2x2) => plus excerpt sub titlu
========================= */

.category-13750-block {
  display: grid;
  grid-template-columns: 380px 1fr; 
  gap: 20px;
  margin-bottom: 40px;
}

/* Articolul mare (stânga, imagine "large") */
.category-13750-big {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-13750-big img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Dreapta: 4 articole în 2x2 grid (imagine "medium") + excerpt sub titlu */
.category-13750-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.category-13750-small {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-13750-small img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Divider */
.divider {
  margin: 30px 0;
  border-top: 1px solid #ccc;
}

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

@media (max-width: 768px) {
  /* Desktop menu ascuns, burger apare */
  .desktop-menu {
    display: none;
  }
  .nav-toggle {
    display: block;
  }

  /* 7px margin stânga/dreapta pe mobil */
  .container {
    margin-left: 7px;
    margin-right: 7px;
  }

  /* Hero: 1 coloană 
     Cele 2 articole (dreapta) => imagine stânga (100px), text dreapta
  */
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side-item {
    flex-direction: row;
    align-items: flex-start;
  }
  .hero-side-item img {
    width: 100px;
    height: 80px;
    margin-right: 10px;
  }

  /* Grid de 4 articole => 1 coloană, imagine stânga + text dreapta */
  .articles-grid-4 {
    grid-template-columns: 1fr;
  }
  .article-item-4 {
    flex-direction: row;
    align-items: flex-start;
  }
  .article-item-4 img {
    width: 100px;
    height: 80px;
    margin-right: 10px;
  }

  /* Cat=13750: 1 coloană, tot stivuit */
  .category-13750-block {
    grid-template-columns: 1fr;
  }
  .category-13750-big {
    flex-direction: row;
    align-items: flex-start;
  }
  .category-13750-big img {
    width: 100px;
    height: 80px;
    margin-right: 10px;
  }
  .category-13750-grid {
    grid-template-columns: 1fr; /* tot 1 coloană */
  }
  .category-13750-small {
    flex-direction: row;
    align-items: flex-start;
  }
  .category-13750-small img {
    width: 100px;
    height: 80px;
    margin-right: 10px;
  }
}
