/* De Jardineria.es - Magazine de Jardineria (estilo 2010-2011) */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
ol, ul { list-style: none; }
a { text-decoration: none; }
img { border: 0; }

body {
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  background: #74aa00 url('images/bgbody.jpg') repeat-x top center;
  color: #333;
}

a:link, a:visited { color: #74aa00; }
a:hover, a:active { color: #d8bc00; }

/* ====== TOP BAR (qualityblogs) ====== */
.top-bar {
  max-width: 1010px;
  margin: 0 auto;
  padding: 4px 10px;
  font-size: 11px;
  color: #fff;
  text-align: right;
}
.top-bar a { color: #fff; font-size: 11px; }
.top-bar a:hover { color: #d8bc00; }

/* ====== HEADER ====== */
.site-header {
  max-width: 1010px;
  margin: 10px auto 0;
  background: #fff url('images/header.jpg') no-repeat top left;
  background-size: 100% 174px;
  height: 174px;
  display: block;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}
.site-header a {
  display: block;
  height: 100%;
  text-indent: -9999px;
  overflow: hidden;
}

/* ====== NAVIGATION BAR ====== */
.main-nav {
  max-width: 1010px;
  margin: 0 auto;
  padding: 0;
  background: #fff url('images/navbar.png') no-repeat;
  background-size: 100% 32px;
  height: 32px;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0 15px;
  height: 100%;
  align-items: center;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  display: block;
  color: #fff;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}
.main-nav a:hover,
.main-nav a.active {
  color: #d8bc00;
  text-decoration: none;
}

/* ====== PAGE WRAPPER ====== */
.page-wrap {
  max-width: 1010px;
  margin: 0 auto;
  background: #fff;
  font-size: 12px;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
  padding: 15px 10px;
  min-height: 500px;
}

/* ====== HOMEPAGE 3-COLUMN LAYOUT ====== */
.home-columns {
  display: flex;
  gap: 15px;
}

/* Column: Flores (featured) */
.col-featured {
  flex: 1.2;
  min-width: 0;
}
.col-featured .section-title {
  color: #74aa00;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #74aa00;
}
.featured-card {
  margin-bottom: 15px;
}
.featured-card img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  padding: 2px;
  display: block;
}
.featured-card h3 {
  margin-top: 8px;
}
.featured-card h3 a {
  font: bold 18px Arial, Helvetica;
  color: #333;
}
.featured-card h3 a:hover {
  color: #74aa00;
}
.featured-card .meta {
  font-size: 11px;
  color: #999;
  margin: 4px 0;
}
.featured-card .excerpt {
  font-size: 12px;
  color: #6d6d6d;
  line-height: 17px;
  text-align: justify;
}
.featured-card .read-more {
  display: inline-block;
  margin-top: 5px;
  color: #74aa00;
  font-weight: bold;
  font-size: 11px;
}
.featured-card .read-more:hover {
  color: #d8bc00;
}

/* Column: Cesped (article list with thumbnails) */
.col-articles {
  flex: 1;
  min-width: 0;
}
.col-articles .section-title {
  color: #74aa00;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #74aa00;
}
.article-thumb-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted #ccc;
}
.article-thumb-item:last-child {
  border-bottom: none;
}
.article-thumb-item img {
  width: 100px;
  height: 65px;
  object-fit: cover;
  border: 1px solid #ccc;
  padding: 2px;
  flex-shrink: 0;
}
.article-thumb-item .thumb-content h4 {
  margin: 0;
}
.article-thumb-item .thumb-content h4 a {
  font: bold 13px Arial, Helvetica;
  color: #333;
}
.article-thumb-item .thumb-content h4 a:hover {
  color: #74aa00;
}
.article-thumb-item .thumb-content .meta {
  font-size: 10px;
  color: #999;
  margin: 2px 0;
}
.article-thumb-item .thumb-content p {
  font-size: 11px;
  color: #6d6d6d;
  line-height: 15px;
  margin: 0;
}

/* Column: Destacados (popular/highlights) */
.col-highlights {
  flex: 0.8;
  min-width: 0;
}
.col-highlights .section-title {
  color: #74aa00;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #74aa00;
}
.highlight-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dotted #ccc;
}
.highlight-item:last-child {
  border-bottom: none;
}
.highlight-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ccc;
  padding: 2px;
  flex-shrink: 0;
}
.highlight-item .hl-content h4 {
  margin: 0;
}
.highlight-item .hl-content h4 a {
  font: bold 13px Arial, Helvetica;
  color: #333;
}
.highlight-item .hl-content h4 a:hover {
  color: #74aa00;
}
.highlight-item .hl-content .meta {
  font-size: 10px;
  color: #999;
  margin: 2px 0;
}

/* ====== FOOTER CATEGORY TABS ====== */
.footer-tabs {
  max-width: 1010px;
  margin: 0 auto;
  background: #fff;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}
.tab-nav {
  display: flex;
  list-style: none;
  border-bottom: 2px solid #74aa00;
  padding: 0 10px;
}
.tab-nav li {
  margin-right: 2px;
}
.tab-nav a {
  display: block;
  padding: 6px 20px;
  background: #e0e0e0;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.tab-nav a:hover,
.tab-nav a.active {
  background: #74aa00;
  color: #fff;
  border-color: #74aa00;
}
.tab-content {
  display: flex;
  gap: 15px;
  padding: 15px 10px;
  flex-wrap: wrap;
}
.tab-content .tab-article {
  flex: 1;
  min-width: 200px;
}
.tab-content .tab-article h4 a {
  font: bold 13px Arial, Helvetica;
  color: #333;
}
.tab-content .tab-article h4 a:hover {
  color: #74aa00;
}
.tab-content .tab-article .meta {
  font-size: 10px;
  color: #999;
  margin: 3px 0;
}
.tab-content .tab-article p {
  font-size: 11px;
  color: #6d6d6d;
  line-height: 15px;
}

/* ====== ARTICLE PAGE LAYOUT ====== */
.article-layout {
  display: flex;
  gap: 20px;
}
.article-main {
  flex: 1;
  min-width: 0;
}
.article-sidebar {
  width: 250px;
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #ddd;
}
.breadcrumb a { color: #74aa00; }
.breadcrumb a:hover { color: #d8bc00; }
.breadcrumb span { margin: 0 4px; color: #ccc; }

/* Article header */
.article-header {
  margin-bottom: 15px;
}
.article-header h1 {
  font: bold 24px Arial, Helvetica;
  color: #333;
  line-height: 1.3;
  margin-bottom: 5px;
}

/* Article meta with author info */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #999;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #ddd;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #74aa00;
  flex-shrink: 0;
}
.author-info .author-name {
  font-weight: bold;
  color: #74aa00;
  text-transform: uppercase;
  font-size: 12px;
}
.author-info .author-stats {
  font-size: 10px;
  color: #aaa;
}

/* Article featured image */
.article-featured-img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  padding: 2px;
  margin-bottom: 15px;
}

/* Article body */
.article-body {
  font-size: 12px;
  line-height: 1.7;
}
.article-body p {
  margin: 12px 0;
  text-align: justify;
  line-height: 19px;
}
.article-body h2 {
  font: bold 18px Arial, Helvetica;
  color: #74aa00;
  margin: 20px 0 10px;
}
.article-body h3 {
  font: bold 15px Arial, Helvetica;
  color: #74aa00;
  margin: 15px 0 8px;
}
.article-body a:link,
.article-body a:visited {
  color: #74aa00;
  text-decoration: underline;
}
.article-body a:hover {
  color: #d8bc00;
}
.article-body ul,
.article-body ol {
  margin: 10px 0 10px 25px;
  list-style: disc;
}
.article-body li {
  margin-bottom: 4px;
  line-height: 17px;
}

/* Sidebar widgets */
.sidebar-widget {
  margin-bottom: 20px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 12px;
}
.sidebar-widget h3 {
  font: bold 14px Arial, Helvetica;
  color: #74aa00;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #74aa00;
}
.sidebar-widget ul {
  list-style: none;
}
.sidebar-widget li {
  padding: 5px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 12px;
}
.sidebar-widget li:last-child {
  border-bottom: none;
}
.sidebar-widget li a {
  color: #333;
}
.sidebar-widget li a:hover {
  color: #74aa00;
}
.sidebar-widget .comment-count {
  font-size: 10px;
  color: #999;
}

/* Category pages */
.category-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #74aa00;
}
.category-header h2 {
  font: bold 22px Arial, Helvetica;
  color: #74aa00;
}
.category-header p {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Article list on category pages */
.article-list {
  list-style: none;
}
.article-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dotted #ccc;
}
.article-list li:last-child {
  border-bottom: none;
}
.article-list .list-thumb {
  width: 100px;
  height: 65px;
  object-fit: cover;
  border: 1px solid #ccc;
  padding: 2px;
  flex-shrink: 0;
}
.article-list .list-content {
  flex: 1;
}
.article-list .list-content h3 {
  margin: 0 0 3px;
}
.article-list .list-content h3 a {
  font: bold 16px Arial, Helvetica;
  color: #333;
}
.article-list .list-content h3 a:hover {
  color: #74aa00;
}
.article-list .meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.article-list .excerpt {
  font-size: 12px;
  color: #6d6d6d;
  line-height: 17px;
}

/* Pages without article list (flores, plagas, tecnicas) */
.page-content {
  font-size: 12px;
  line-height: 1.7;
}
.page-content p {
  margin: 12px 0;
  text-align: justify;
  line-height: 19px;
}
.page-content h2 {
  font: bold 18px Arial, Helvetica;
  color: #74aa00;
  margin: 20px 0 10px;
}
.page-content a:link,
.page-content a:visited {
  color: #74aa00;
}
.page-content a:hover {
  color: #d8bc00;
}

/* ====== SITE FOOTER ====== */
.site-footer {
  max-width: 1010px;
  margin: 0 auto;
  background: #3a3a3a;
  color: #aaa;
  text-align: center;
  padding: 15px 10px;
  font-size: 11px;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}
.site-footer a { color: #74aa00; }
.site-footer a:hover { color: #d8bc00; }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  body {
    background: #74aa00;
  }
  .site-header {
    height: auto;
    min-height: 80px;
    background-size: cover;
  }
  .main-nav {
    height: auto;
    background-size: 100% 100%;
    flex-wrap: wrap;
  }
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav a {
    padding: 4px 10px;
    font-size: 11px;
  }
  .home-columns {
    flex-direction: column;
  }
  .article-layout {
    flex-direction: column;
  }
  .article-sidebar {
    width: 100%;
  }
  .tab-nav {
    flex-wrap: wrap;
  }
  .tab-content {
    flex-direction: column;
  }
  .article-list li {
    flex-direction: column;
  }
  .article-list .list-thumb {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
}
