/*
Theme Name: ApropoRomania
Theme URI: https://aproporomania.ro
Author: ApropoRomania
Description: Tema custom pentru revista de stiri si calatorii ApropoRomania
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: aproporomania
*/

/* ─── VARIABILE ─── */
:root {
  --navy:  #0f172a;
  --dark:  #020617;
  --cyan:  #38bdf8;
  --cyan2: #0ea5e9;
  --text:  #0f172a;
  --muted: #64748b;
  --light: #94a3b8;
  --bg:    #f8fafc;
  --white: #ffffff;
  --border:#e2e8f0;
  --card-radius: 12px;
  --transition: .22s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── TOP BAR ─── */
.ar-topbar { background: var(--dark); border-bottom: 1px solid #1e293b; padding: 5px 0; font-size: 12px; color: var(--light); }
.ar-topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.ar-topbar-social { display: flex; gap: 16px; }
.ar-topbar-social a { color: var(--light); transition: color var(--transition); }
.ar-topbar-social a:hover { color: var(--cyan); }

/* ─── HEADER ─── */
.ar-header { background: linear-gradient(180deg, #0a1220 0%, var(--navy) 100%); position: sticky; top: 0; z-index: 9999; box-shadow: 0 2px 24px rgba(0,0,0,.55); border-bottom: 1px solid #1e293b; }
.ar-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ar-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ar-logo img { height: 42px; width: auto; }
.ar-logo-text { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -0.5px; line-height: 1; }
.ar-logo-text em { color: var(--cyan); font-style: normal; }

/* NAV */
.ar-nav { display: flex; align-items: center; gap: 1px; }
.ar-nav > li { position: relative; }
.ar-nav > li > a { display: flex; align-items: center; gap: 4px; color: #cbd5e1; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 6px; white-space: nowrap; transition: all var(--transition); }
.ar-nav > li > a:hover,
.ar-nav > li:hover > a { color: var(--cyan); background: rgba(56,189,248,.12); }
.ar-nav > li > a.current-menu-item { color: var(--cyan); }
.ar-nav .menu-arrow { font-size: 9px; opacity: .6; transition: transform var(--transition); }
.ar-nav > li:hover .menu-arrow { transform: rotate(180deg); }
.ar-nav .chat-btn { background: linear-gradient(135deg, #38bdf8, #6366f1) !important; color: #fff !important; border-radius: 20px !important; padding: 7px 18px !important; font-size: 12px !important; font-weight: 700 !important; }
.ar-nav .chat-btn:hover { opacity: .88; }

/* DROPDOWN */
.ar-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #0c1a2e; border: 1px solid #1e293b; border-radius: 10px; min-width: 200px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.ar-nav > li.hovered > .sub-menu,
.ar-nav > li:hover > .sub-menu { display: block; }
.ar-nav .sub-menu a { display: block; color: #94a3b8; font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 6px; white-space: nowrap; transition: all var(--transition); }
.ar-nav .sub-menu a:hover { color: var(--cyan); background: rgba(56,189,248,.08); }

/* HAMBURGER */
.ar-hamburger { display: none; background: none; border: none; color: #fff; font-size: 26px; line-height: 1; padding: 4px; }
@media (max-width: 960px) {
  .ar-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-top: 1px solid #1e293b; gap: 2px; z-index: 9999; }
  .ar-nav.open { display: flex; }
  .ar-nav > li > a { width: 100%; padding: 11px 14px; border-radius: 8px; }
  .ar-nav .sub-menu { position: static; display: none; background: rgba(0,0,0,.2); border: none; border-radius: 8px; margin-top: 4px; padding: 4px 8px; box-shadow: none; }
  .ar-nav > li.open > .sub-menu { display: block; }
  .ar-hamburger { display: block; }
  .ar-nav .chat-btn { text-align: center; border-radius: 8px !important; }
}

/* ─── TICKER ─── */
.ar-ticker { background: var(--cyan); overflow: hidden; }
.ar-ticker-inner { display: flex; align-items: stretch; height: 36px; }
.ar-ticker-label { background: var(--dark); color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; padding: 0 18px; display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.ar-ticker-track { display: flex; align-items: center; white-space: nowrap; animation: artick 45s linear infinite; }
.ar-ticker-track:hover { animation-play-state: paused; }
.ar-ticker-track a { color: var(--dark); font-size: 13px; font-weight: 700; padding: 0 36px 0 0; white-space: nowrap; transition: opacity .2s; }
.ar-ticker-track a:hover { opacity: .75; color: var(--dark); }
@keyframes artick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── HERO ─── */
.ar-hero { position: relative; height: 560px; overflow: hidden; }
@media (max-width: 600px) { .ar-hero { height: 400px; } }
.ar-hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.ar-hero:hover .ar-hero-img { transform: scale(1.04); }
.ar-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.95) 0%, rgba(10,22,40,.5) 50%, rgba(10,22,40,.08) 100%); }
.ar-hero-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 48px; max-width: 900px; }
@media (max-width: 600px) { .ar-hero-body { padding: 20px 20px 28px; } }
.ar-hero-tag { display: inline-flex; align-items: center; background: var(--cyan); color: var(--dark); font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 4px; margin-bottom: 14px; }
.ar-hero-title { font-size: clamp(24px, 3.2vw, 42px); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 14px; }
.ar-hero-title a { color: inherit; }
.ar-hero-title a:hover { color: var(--cyan); }
.ar-hero-meta { color: rgba(200,220,255,.7); font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; }

/* ─── CONTAINER ─── */
.ar-container { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.ar-two-col { display: grid; grid-template-columns: 1fr 340px; gap: 36px; }
@media (max-width: 1060px) { .ar-two-col { grid-template-columns: 1fr; } }

/* ─── SECTION HEADER ─── */
.ar-sec-head { display: flex; align-items: center; margin-bottom: 22px; }
.ar-sec-head-bar { width: 4px; height: 22px; background: var(--cyan); border-radius: 2px; margin-right: 10px; flex-shrink: 0; }
.ar-sec-head-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text); }
.ar-sec-head-line { flex: 1; height: 1px; background: var(--border); margin-left: 14px; }
.ar-sec-head-more { font-size: 12px; color: var(--cyan); font-weight: 600; margin-left: 14px; white-space: nowrap; transition: opacity var(--transition); }
.ar-sec-head-more:hover { opacity: .75; color: var(--cyan); }

/* ─── CARDS ─── */
.ar-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 36px; }
.ar-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 36px; }
@media (max-width: 800px) { .ar-grid-3 { grid-template-columns: 1fr 1fr; } .ar-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ar-grid-3, .ar-grid-2 { grid-template-columns: 1fr; } }

.ar-card { background: var(--white); border-radius: var(--card-radius); overflow: hidden; border: 1px solid #f1f5f9; box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.ar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(56,189,248,.14); border-color: rgba(56,189,248,.35); }
.ar-card-thumb { aspect-ratio: 16/9; overflow: hidden; display: block; }
.ar-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ar-card:hover .ar-card-thumb img { transform: scale(1.07); }
.ar-card-body { padding: 15px 17px 19px; }
.ar-card-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 7px; }
.ar-card-tag:hover { color: var(--cyan2); }
.ar-card-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.45; margin-bottom: 8px; }
.ar-card-title a { color: inherit; }
.ar-card-title a:hover { color: var(--cyan); }
.ar-card-date { font-size: 11px; color: var(--light); }

/* ─── BANNER CHAT ─── */
.ar-chat-banner { background: linear-gradient(135deg, var(--navy) 0%, #0c1a2e 100%); border: 1px solid #1e293b; border-radius: 14px; padding: 32px 40px; margin-bottom: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.ar-chat-banner::before { content: '💬'; position: absolute; right: 40px; top: 50%; transform: translateY(-50%); font-size: 90px; opacity: .06; pointer-events: none; }
.ar-chat-banner h2 { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.ar-chat-banner p { font-size: 13px; color: #94a3b8; }
.ar-chat-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.ar-btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: 13px; transition: all var(--transition); white-space: nowrap; }
.ar-btn:hover { transform: translateY(-2px); }
.ar-btn-cyan { background: var(--cyan); color: var(--dark); }
.ar-btn-cyan:hover { background: var(--cyan2); color: var(--dark); }
.ar-btn-outline { border: 2px solid #1e293b; color: #94a3b8; }
.ar-btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ─── CATS GRID ─── */
.ar-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 36px; }
@media (max-width: 600px) { .ar-cats { grid-template-columns: repeat(2,1fr); } }
.ar-cat-chip { display: block; background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 16px 10px; text-align: center; font-size: 12px; font-weight: 700; color: #475569; transition: all var(--transition); }
.ar-cat-chip:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(56,189,248,.05); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(56,189,248,.15); }
.ar-cat-chip .cat-icon { font-size: 24px; display: block; margin-bottom: 7px; }

/* ─── SIDEBAR ─── */
.ar-sidebar-box { background: var(--white); border-radius: var(--card-radius); padding: 20px; box-shadow: 0 1px 5px rgba(0,0,0,.07); margin-bottom: 22px; }
.ar-sidebar-box-dark { background: var(--navy); border: 1px solid #1e293b; }
.ar-sidebar-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--text); margin-bottom: 16px; padding-bottom: 11px; border-bottom: 2px solid var(--cyan); }
.ar-sidebar-box-dark .ar-sidebar-title { color: var(--cyan); border-color: #1e3a5f; }

.ar-list-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.ar-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.ar-list-thumb { width: 74px; height: 54px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.ar-list-title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.42; margin-bottom: 5px; }
.ar-list-title a { color: inherit; }
.ar-list-title a:hover { color: var(--cyan); }
.ar-list-date { font-size: 11px; color: var(--light); }

.ar-activity-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text); transition: all var(--transition); margin-bottom: 8px; }
.ar-activity-link:last-child { margin-bottom: 0; }
.ar-activity-link:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(56,189,248,.05); }
.ar-activity-icon { font-size: 18px; flex-shrink: 0; }

/* ─── SINGLE POST ─── */
.ar-single-hero { position: relative; height: 460px; overflow: hidden; margin-bottom: 0; }
.ar-single-hero img { width: 100%; height: 100%; object-fit: cover; }
.ar-single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.85) 0%, transparent 60%); }
.ar-single-hero-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 40px; }
@media (max-width: 600px) { .ar-single-hero-meta { padding: 20px; } .ar-single-hero { height: 320px; } }
.ar-single-tag { display: inline-block; background: var(--cyan); color: var(--dark); font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 4px; margin-bottom: 12px; }
.ar-single-title { font-size: clamp(22px, 3vw, 36px); font-weight: 900; color: #fff; line-height: 1.18; }

.ar-article-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }
.ar-article-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.ar-article-meta span { display: flex; align-items: center; gap: 5px; }
.ar-article-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.ar-article-content p { margin-bottom: 1.4em; }
.ar-article-content h2 { font-size: 22px; font-weight: 700; margin: 1.8em 0 .6em; color: var(--text); }
.ar-article-content h3 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .5em; color: var(--text); }
.ar-article-content img { border-radius: 10px; margin: 1.5em 0; max-width: 100%; }
.ar-article-content a { color: var(--cyan); text-decoration: underline; }
.ar-article-content blockquote { border-left: 4px solid var(--cyan); padding: 12px 20px; margin: 1.5em 0; background: #f0f9ff; border-radius: 0 10px 10px 0; font-style: italic; color: var(--muted); }
.ar-article-content ul, .ar-article-content ol { padding-left: 22px; margin-bottom: 1.4em; }
.ar-article-content li { margin-bottom: .5em; }

/* ─── ARCHIVE ─── */
.ar-archive-header { background: var(--navy); padding: 48px 24px; text-align: center; margin-bottom: 0; }
.ar-archive-header h1 { font-size: 30px; font-weight: 900; color: #fff; }
.ar-archive-header p { color: #94a3b8; font-size: 14px; margin-top: 8px; }

/* ─── PAGINATION ─── */
.ar-pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0 20px; flex-wrap: wrap; }
.ar-pagination a, .ar-pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1.5px solid var(--border); color: var(--muted); transition: all var(--transition); background: var(--white); }
.ar-pagination a:hover, .ar-pagination .current { background: var(--cyan); border-color: var(--cyan); color: var(--dark); }

/* ─── PAGE ─── */
.ar-page-wrap { max-width: 900px; margin: 0 auto; padding: 48px 24px 64px; }
.ar-page-wrap h1 { font-size: 32px; font-weight: 900; margin-bottom: 24px; color: var(--text); }
.ar-page-wrap p { margin-bottom: 1.3em; font-size: 15px; line-height: 1.75; color: var(--text); }

/* ─── 404 ─── */
.ar-404 { text-align: center; padding: 100px 24px; }
.ar-404 h1 { font-size: 80px; font-weight: 900; color: var(--cyan); line-height: 1; }
.ar-404 h2 { font-size: 22px; font-weight: 700; margin: 12px 0 20px; }

/* ─── FOOTER ─── */
.ar-footer { background: var(--dark); color: #94a3b8; margin-top: 56px; }
.ar-footer-inner { max-width: 1280px; margin: 0 auto; padding: 52px 24px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
@media (max-width: 900px) { .ar-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ar-footer-inner { grid-template-columns: 1fr; } }
.ar-footer-logo { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.ar-footer-logo em { color: var(--cyan); font-style: normal; }
.ar-footer-desc { font-size: 13px; color: #64748b; line-height: 1.7; }
.ar-footer-social { display: flex; gap: 8px; margin-top: 18px; }
.ar-footer-social a { width: 34px; height: 34px; border-radius: 50%; background: #1e293b; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; font-weight: 700; transition: all var(--transition); }
.ar-footer-social a:hover { background: var(--cyan); color: var(--dark); }
.ar-footer-col h4 { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 16px; }
.ar-footer-col a { display: block; font-size: 13px; color: #64748b; margin-bottom: 9px; transition: color var(--transition); }
.ar-footer-col a:hover { color: var(--cyan); }
.ar-footer-bottom { max-width: 1280px; margin: 0 auto; padding: 16px 24px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #475569; flex-wrap: wrap; gap: 8px; }

/* ─── SEARCH ─── */
.ar-search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.ar-search-form input[type="search"] { flex: 1; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; transition: border-color var(--transition); }
.ar-search-form input[type="search"]:focus { border-color: var(--cyan); }
.ar-search-form button { background: var(--cyan); color: var(--dark); border: none; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 14px; transition: background var(--transition); }
.ar-search-form button:hover { background: var(--cyan2); }

/* ─── MOBILE FIXES ─── */
@media (max-width: 768px) {
  .ar-container { padding: 20px 16px; }
  .ar-chat-banner { padding: 22px 20px; flex-direction: column; align-items: flex-start; }
  .ar-chat-banner h2 { font-size: 18px; }
  .ar-chat-btns { width: 100%; }
  .ar-chat-btns .ar-btn { flex: 1; justify-content: center; }
  .ar-trending-item { gap: 10px; padding: 10px 14px; }
  .ar-trending-thumb { width: 54px; height: 42px; }
  .ar-trending-num { font-size: 18px; min-width: 28px; }
  .ar-sidebar-box { padding: 16px; }
  .ar-footer-inner { padding: 36px 16px 20px; }
  .ar-pagination a, .ar-pagination span { width: 36px; height: 36px; font-size: 13px; }
}
@media (max-width: 480px) {
  .ar-topbar { display: none; }
  .ar-header-inner { padding: 0 14px; }
  .ar-logo-text { font-size: 17px; }
  .ar-two-col { gap: 20px; }
  .ar-sec-head-title { font-size: 11px; }
  .ar-cats { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .ar-cat-chip { padding: 12px 6px; font-size: 11px; }
  .ar-cat-chip .cat-icon { font-size: 20px; }
}

/* ─── UTILITIES ─── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mb-0 { margin-bottom: 0 !important; }
