/*
Theme Name: DreptLaReplica
Theme URI: https://dreptlareplica.ro
Author: DreptLaReplica Redactie
Description: Tema personalizata pentru portalul de stiri DreptLaReplica.ro
Version: 1.0
License: GNU General Public License v2
Text Domain: dreptlareplica
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --rosu: #C0001C;
  --rosu-dark: #8B0015;
  --negru: #111111;
  --gri-dark: #222222;
  --gri: #555555;
  --gri-light: #f4f4f4;
  --alb: #ffffff;
  --galben: #FFD700;
  --border: #e0e0e0;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Source Sans 3', sans-serif; background: #f0f0f0; color: var(--negru); }

/* TOP BAR */
.topbar { background: var(--negru); color: #aaa; font-size: 12px; padding: 5px 0; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #aaa; text-decoration: none; margin-left: 15px; }
.topbar a:hover { color: var(--alb); }

/* HEADER */
header { background: var(--alb); border-bottom: 3px solid var(--rosu); padding: 15px 0 0; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.logo { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; color: var(--rosu); letter-spacing: -1px; text-decoration: none; line-height: 1; }
.logo span { color: var(--negru); }
.logo-tagline { font-size: 11px; color: var(--gri); font-family: 'Source Sans 3', sans-serif; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }

/* NAV */
nav { background: var(--rosu); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; }
nav a { color: var(--alb); text-decoration: none; padding: 12px 18px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: block; transition: background 0.2s; }
nav a:hover, nav a.active { background: var(--rosu-dark); }
nav a.featured { background: var(--negru); }

/* BREAKING NEWS */
.breaking { background: var(--negru); display: flex; align-items: center; overflow: hidden; }
.breaking-label { background: var(--rosu); color: var(--alb); padding: 8px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker { display: flex; animation: ticker 40s linear infinite; white-space: nowrap; }
.ticker a { color: #ddd; text-decoration: none; padding: 8px 40px 8px 0; font-size: 13px; font-weight: 600; }
.ticker a:hover { color: var(--galben); }
.ticker-sep { color: var(--rosu); padding: 8px 10px 8px 0; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* MAIN LAYOUT */
.container { max-width: 1200px; margin: 20px auto; padding: 0 15px; display: flex; gap: 20px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* SECTION TITLE */
.section-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--negru); padding-bottom: 8px; border-bottom: 3px solid var(--rosu); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.section-title .dot { width: 8px; height: 8px; background: var(--rosu); border-radius: 50%; }

/* HERO GRID */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 3px; margin-bottom: 20px; }
.hero-main { grid-row: 1/3; position: relative; overflow: hidden; height: 400px; }
.hero-side { height: 196px; overflow: hidden; position: relative; }
.hero-main img, .hero-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 40px 15px 15px; }
.article-cat { background: var(--rosu); color: var(--alb); font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; letter-spacing: 1px; margin-bottom: 6px; display: inline-block; }
.article-overlay h2 { color: var(--alb); font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.25; font-weight: 700; }
.article-overlay .meta { color: rgba(255,255,255,0.7); font-size: 11px; margin-top: 6px; }
.hero-main .article-overlay h2 { font-size: 28px; }
.hero-side .article-overlay h2 { font-size: 15px; }

/* ARTICLE GRID */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.article-card { background: var(--alb); overflow: hidden; }
.article-card .img-wrap { overflow: hidden; }
.article-card img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s; }
.article-card:hover img { transform: scale(1.04); }
.card-body { padding: 12px; }
.card-cat { color: var(--rosu); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.card-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card-title a { color: var(--negru); text-decoration: none; }
.card-title a:hover { color: var(--rosu); }
.card-excerpt { font-size: 13px; color: var(--gri); line-height: 1.5; margin-bottom: 8px; }
.card-meta { font-size: 11px; color: #999; display: flex; gap: 10px; }

/* ARTICLE LIST */
.article-list { background: var(--alb); margin-bottom: 20px; }
.article-list-item { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.article-list-item:last-child { border-bottom: none; }
.article-list-item img { width: 100px; height: 70px; object-fit: cover; flex-shrink: 0; }
.article-list-item:hover .ali-title { color: var(--rosu); }
.ali-cat { color: var(--rosu); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ali-title { font-weight: 700; font-size: 14px; line-height: 1.3; margin: 3px 0; }
.ali-meta { font-size: 11px; color: #999; }

/* SIDEBAR */
.sidebar-block { background: var(--alb); margin-bottom: 20px; }
.sidebar-block-title { background: var(--rosu); color: var(--alb); padding: 10px 15px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.trending-item { display: flex; gap: 10px; padding: 10px 15px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; align-items: flex-start; }
.trending-num { font-size: 28px; font-weight: 900; color: var(--border); line-height: 1; flex-shrink: 0; width: 30px; font-family: 'Playfair Display', serif; }
.trending-item:nth-child(2) .trending-num { color: var(--rosu); }
.trending-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.trending-item:hover .trending-title { color: var(--rosu); }

/* FOOTER */
footer { background: var(--negru); color: #aaa; margin-top: 40px; }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 40px 15px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--rosu); margin-bottom: 12px; }
.footer-about { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: var(--alb); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--rosu); }
.footer-col a { display: block; color: #aaa; text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--alb); }
.footer-bottom { border-top: 1px solid #333; padding: 15px; text-align: center; font-size: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a { background: #333; color: #aaa; padding: 6px 12px; font-size: 12px; text-decoration: none; }
.footer-social a:hover { background: var(--rosu); color: white; }

/* WORDPRESS POSTS */
.wp-posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 20px; }
.wp-post-card { background: #fff; overflow: hidden; }
.wp-post-card img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s; }
.wp-post-card:hover img { transform: scale(1.04); }
.wp-post-card .card-body { padding: 12px; }
.wp-post-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.wp-post-card h3 a { color: var(--negru); text-decoration: none; }
.wp-post-card h3 a:hover { color: var(--rosu); }
.wp-post-card .excerpt { font-size: 13px; color: var(--gri); line-height: 1.5; }

/* SINGLE ARTICLE */
.single-article { background: #fff; padding: 30px; max-width: 800px; }
.single-article h1 { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; line-height: 1.2; margin-bottom: 15px; }
.single-article .article-meta { color: #999; font-size: 13px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.single-article img { width: 100%; height: auto; margin-bottom: 20px; }
.single-article p { font-size: 16px; line-height: 1.8; margin-bottom: 16px; color: #333; }
.single-article h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin: 25px 0 15px; color: var(--negru); }
.source-box { margin-top: 30px; padding: 12px 15px; background: #f8f8f8; border-left: 3px solid var(--rosu); font-size: 12px; color: #777; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .articles-grid, .wp-posts-grid { grid-template-columns: 1fr; }
  .container { flex-direction: column; }
  .sidebar { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav a { padding: 10px 12px; font-size: 12px; }
}
