/*
Theme Name: Elite
Theme URI: https://revistaelite.al
Author: Revista Elite
Description: Tema editoriale luksoze per revistaelite.al - masthead Bodoni, layout revistë, dark mode, 3 layout-e balline (Revistë / Grid / Listë).
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: elite
*/

:root {
  --accent: #B3001B; --ink: #0A0A0A; --bg: #FFFFFF; --panel: #F7F5F1;
  --muted: #6B6B6B; --line: rgba(10,10,10,0.16);
  --serif: 'Bodoni Moda', Georgia, serif; --sans: 'Archivo', Helvetica, Arial, sans-serif;
}
body.elite-dark {
  --ink: #EFE9E2; --bg: #111013; --panel: #1A181C;
  --muted: #9B948C; --line: rgba(239,233,226,0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.7; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
::selection { background: var(--ink); color: #fff; }

.wrap { padding-left: clamp(20px, 4vw, 64px); padding-right: clamp(20px, 4vw, 64px); }

/* Topbar */
.topbar { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar .social { display: flex; gap: 22px; align-items: center; }
.mode-toggle { background: none; border: 1px solid var(--line); color: var(--ink); font-family: inherit; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; padding: 5px 12px; cursor: pointer; }

/* Masthead */
.masthead { text-align: center; }
.masthead-cover { position: relative; overflow: hidden; }
.masthead-cover img.cover-img { width: 100%; height: clamp(240px, 38vh, 400px); object-fit: cover; display: block; animation: eliteZoom 26s ease-in-out infinite; }
.masthead-cover .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.45)); }
.masthead-cover .brand { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.masthead .brand h1, .masthead .brand .site-title { font-family: var(--serif); font-weight: 600; font-size: clamp(64px, 10vw, 148px); line-height: 1; margin: 0; letter-spacing: 0.08em; }
.masthead-cover .brand a { color: #fff; text-decoration: none; text-shadow: 0 2px 30px rgba(0,0,0,0.55); }
.masthead .tagline { font-size: 12px; font-weight: 600; letter-spacing: 0.36em; text-transform: uppercase; margin-top: 12px; }
.masthead-cover .tagline { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.masthead-plain { padding-top: 26px; }
@keyframes eliteZoom { 0% { transform: scale(1); } 50% { transform: scale(1.035); } 100% { transform: scale(1); } }

/* Nav */
.main-nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 13px clamp(8px, 2vw, 24px); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; }
.main-nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--accent); }
.search-toggle { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 0; }
.search-bar { display: none; border-bottom: 1px solid var(--line); padding: 18px 0; text-align: center; }
.search-bar.open { display: block; }
.search-bar input[type=search] { width: min(560px, 90%); background: none; border: none; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--ink); padding: 8px 4px; outline: none; text-align: center; }
.search-bar button { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0,8fr) minmax(0,4fr); gap: clamp(20px,3vw,40px); padding-top: 34px; align-items: stretch; }
.hero-main { position: relative; display: block; text-decoration: none; overflow: hidden; }
.hero-main img { width: 100%; height: clamp(420px, 62vh, 640px); object-fit: cover; display: block; animation: eliteZoom 24s ease-in-out infinite; }
.hero-main .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.62), transparent 55%); }
.hero-main .meta { position: absolute; left: clamp(18px,3vw,44px); right: clamp(18px,3vw,44px); bottom: clamp(18px,3vw,40px); }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.hero-main .kicker { color: #fff; margin-bottom: 12px; }
.hero-main .kicker .cat { background: var(--accent); padding: 5px 10px; }
.hero-main .kicker .date { margin-left: 14px; opacity: 0.85; }
.hero-main h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.08; color: #fff; margin: 0; }
.most-read { border-top: 3px solid var(--ink); }
.most-read .label { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; padding: 14px 0 4px; color: var(--accent); }
.most-read a { text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: baseline; }
.most-read a:last-child { border-bottom: none; }
.most-read .n { font-family: var(--serif); font-size: 24px; color: var(--accent); }
.most-read .t { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.3; }

/* Content + sidebar */
.content-area { display: grid; grid-template-columns: minmax(0,8.5fr) minmax(0,3.5fr); gap: clamp(24px,4vw,56px); padding-top: 70px; padding-bottom: 80px; }
.content-area.no-sidebar { grid-template-columns: 1fr; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: 12px; margin-bottom: 30px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 38px); margin: 0; }
.section-head a { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; color: var(--muted); }

/* Layout: grid cards */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px,3vw,44px); }
.post-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card .thumb { overflow: hidden; }
.card .thumb img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.card:hover .thumb img { transform: scale(1.04); }
.card .kicker { color: var(--accent); }
.card .kicker .date { color: var(--muted); font-weight: 400; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.22; margin: 0; }
.card p { font-size: 15px; margin: 0; color: var(--ink); opacity: 0.78; }

/* Layout: list */
.post-list .card { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: clamp(18px,2.5vw,34px); align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list .card .thumb img { height: 200px; }
.post-list .card h3 { font-size: 28px; }

/* Sidebar */
.widget-area { display: flex; flex-direction: column; gap: 44px; }
.widget { font-size: 14px; }
.widget-title { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin: 0 0 18px; font-family: var(--sans); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { border-bottom: 1px solid var(--line); }
.widget ul li a { font-family: var(--serif); font-weight: 600; font-size: 19px; text-decoration: none; display: block; padding: 11px 0; }
.widget-newsletter { background: var(--panel); padding: 32px 28px; text-align: center; }
.widget-newsletter .widget-title { border: none; color: var(--accent); padding: 0; margin-bottom: 14px; }
.widget-newsletter h4 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
.widget-newsletter p { color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.widget-newsletter input[type=email] { width: 100%; background: var(--bg); border: 1px solid var(--line); font-family: inherit; font-size: 13px; padding: 12px 14px; color: var(--ink); outline: none; margin-bottom: 10px; }
.widget-newsletter button { width: 100%; background: var(--ink); color: var(--bg); border: none; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; padding: 14px; cursor: pointer; }
.widget-newsletter button:hover { background: var(--accent); color: #fff; }

/* Single */
.single-article { max-width: 860px; margin: 0 auto; padding-top: 60px; }
.single-article .kicker { color: var(--accent); text-align: center; }
.single-article h1.entry-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; text-align: center; margin: 16px 0 20px; }
.entry-byline { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.entry-hero img { width: 100%; max-height: 640px; object-fit: cover; }
.entry-content { font-size: 17px; line-height: 1.9; padding: 36px 0 60px; }
.entry-content > p:first-of-type::first-letter { font-family: var(--serif); font-size: 58px; line-height: 0.8; float: left; padding: 8px 12px 0 0; color: var(--accent); }
.entry-content a { color: var(--accent); }
.entry-content blockquote { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; border-left: 3px solid var(--accent); margin: 32px 0; padding: 4px 0 4px 28px; }

/* Archive header */
.archive-head { text-align: center; padding: 60px 0 10px; }
.archive-head .kicker { color: var(--accent); }
.archive-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 72px); margin: 8px 0 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; padding: 50px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.pagination .page-numbers { text-decoration: none; border: 1px solid var(--line); padding: 10px 16px; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); text-align: center; padding: 60px 24px 50px; margin-top: 40px; }
.site-footer .logo { font-family: var(--serif); font-weight: 600; font-size: 44px; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer nav ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer nav a, .site-footer .colophon { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .hero, .content-area, .post-grid, .post-grid.cols-3, .post-list .card { grid-template-columns: 1fr; }
  .hero-main img { height: 320px; }
}

/* Tags / author box / post nav / related */
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 30px; }
.entry-tags a { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); padding: 7px 14px; }
.entry-tags a:hover { border-color: var(--accent); }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.author-box img { border-radius: 50%; }
.author-box .name { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 4px 0; }
.author-box p { margin: 0; font-size: 14px; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 0 50px; }
.post-nav a { font-family: var(--serif); font-weight: 600; font-size: 18px; text-decoration: none; line-height: 1.3; }
.related { padding-bottom: 70px; }

/* Comments */
.comments-area { padding: 40px 0 70px; }
.comments-title, .comment-reply-title { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--line); padding: 22px 0; }
.comment-list .comment-body { font-size: 15px; }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 16px; }
.comment-list .fn { font-family: var(--serif); font-weight: 600; font-style: normal; font-size: 18px; }
.comment-list .comment-metadata a { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-form label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); font-family: inherit; font-size: 14px; padding: 12px 14px; color: var(--ink); outline: none; margin-bottom: 16px; }
.comment-form .submit { background: var(--ink); color: var(--bg); border: none; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; padding: 14px 34px; cursor: pointer; }
.comment-form .submit:hover { background: var(--accent); color: #fff; }

/* Footer widgets */
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; border-top: 1px solid var(--ink); padding-top: 50px; padding-bottom: 20px; margin-top: 40px; }
.footer-widgets + .site-footer { border-top: none; margin-top: 0; }

/* WP core alignment/caption classes */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.sticky { position: relative; }
.bypostauthor { display: block; }
@media (max-width: 700px) { .post-nav { grid-template-columns: 1fr; } }

/* ===== PORTAL ADDITIONS (v2) ===== */

/* Topbar extras */
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.topbar-menu a { text-decoration: none; font-weight: 600; }
.social a span { margin-left: 0; }
.social svg { vertical-align: middle; }

/* Sticky nav */
body.elite-sticky .sticky-nav-wrap { position: sticky; top: 0; z-index: 50; background: var(--bg); }

/* Custom logo */
.masthead .custom-logo { max-height: 120px; width: auto; }
.masthead-cover .custom-logo { filter: brightness(0) invert(1); }

/* Breaking news ticker */
.elite-ticker { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.elite-ticker .ticker-label { flex: none; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; padding: 11px 16px; }
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; padding-left: 20px; animation: eliteTicker 40s linear infinite; }
.ticker-track a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 11px 0; }
.ticker-track .dot { color: var(--accent); padding: 0 18px; }
.elite-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes eliteTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Breadcrumbs */
.elite-breadcrumbs { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 22px; }
.elite-breadcrumbs a { text-decoration: none; color: var(--muted); }
.elite-breadcrumbs a:hover { color: var(--accent); }
.elite-breadcrumbs .sep { color: var(--line); padding: 0 4px; }

/* Ads */
.elite-ad { text-align: center; margin: 32px 0; }
.elite-ad-header, .elite-ad-below_hero, .elite-ad-footer { padding: 20px clamp(20px,4vw,64px); }
.elite-ad-label { display: block; font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.elite-ad-body { display: inline-block; max-width: 100%; }
.elite-ad-in_article { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }

/* Sidebar position (body class) */
body.elite-sidebar-left .content-area { direction: rtl; }
body.elite-sidebar-left .content-area > * { direction: ltr; }
body.elite-sidebar-none .content-area { grid-template-columns: 1fr; }
body.elite-sidebar-none .content-area .widget-area { display: none; }

/* Portal layout */
.portal-block { margin-bottom: 64px; }
.portal-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: clamp(24px,3vw,44px); }
.portal-lead { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.portal-lead .thumb { overflow: hidden; }
.portal-lead .thumb img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.portal-lead:hover .thumb img { transform: scale(1.04); }
.portal-lead .kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.portal-lead h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 0; }
.portal-lead p { font-size: 15px; color: var(--ink); opacity: 0.78; margin: 0; }
.portal-list { display: flex; flex-direction: column; }
.portal-item { text-decoration: none; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.portal-item:first-child { padding-top: 0; }
.portal-item .thumb img { width: 120px; height: 80px; object-fit: cover; display: block; }
.portal-item .kicker { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.portal-item h4 { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.25; margin: 4px 0 0; }

/* Footer widgets multi-column */
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; border-top: 1px solid var(--ink); padding-top: 56px; padding-bottom: 20px; margin-top: 40px; }
.footer-widgets + .site-footer { border-top: none; margin-top: 20px; }
.footer-about .footer-logo { font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-about p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 16px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: inline-flex; align-items: center; color: var(--muted); }
.footer-social a span { display: none; }
.footer-social a:hover { color: var(--accent); }
.footer-col .widget-title { font-size: 11px; }

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: 1fr; }
  .topbar-left { gap: 12px; }
  .topbar-menu { display: none; }
}

/* ===== SLIDER (v2.1) ===== */
.elite-slider { position: relative; }
.elite-slider .slides { position: relative; height: clamp(380px, 56vh, 580px); background: var(--panel); }
.elite-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; text-decoration: none; overflow: hidden; pointer-events: none; }
.elite-slider .slide.active { opacity: 1; pointer-events: auto; }
.elite-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.elite-slider .slide .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 55%); }
.elite-slider .slide .meta { position: absolute; left: clamp(18px,4vw,64px); right: clamp(18px,4vw,64px); bottom: clamp(20px,4vw,48px); }
.elite-slider .slide .kicker { color: #fff; margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.elite-slider .slide .kicker .cat { background: var(--accent); padding: 5px 10px; }
.elite-slider .slide .kicker .date { margin-left: 14px; opacity: 0.85; }
.elite-slider .slide h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px,3.6vw,50px); line-height: 1.08; color: #fff; margin: 0; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.3); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.slider-prev:hover, .slider-next:hover { background: var(--accent); border-color: var(--accent); }
.slider-prev { left: 18px; } .slider-next { right: 18px; }
.slider-dots { position: absolute; bottom: 18px; right: clamp(18px,4vw,64px); display: flex; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider-dots button.active { background: #fff; }
