/*
Theme Name: snorfi
Theme URI: https://snor.fi
Author: Trident Web Solutions SRL
Description: Lightweight responsive news / magazine theme for snor.fi
Version: 1.9
License: Proprietary
Text Domain: snorfi
*/
:root {
  --bg-page:#F5F6FA;
  --bg-card:#FFFFFF;
  --text-main:#1B1F2A;
  --text-dim:#6B7185;
  --accent:#3B6AFF;
  --breaking:#FF3B30;
  --radius-card:16px;
  --shadow-card:0 8px 24px rgba(0,0,0,.06);
  --max-width-content:680px;
  --max-width-page:1280px;
  --border-card:1px solid rgba(0,0,0,.05);
  --footer-bg:#0F1118;
  --footer-text:#B4B8C9;
}

*,*::before,*::after {
  box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
}

body {
  margin:0;
  background:var(--bg-page);
  color:var(--text-main);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Inter","Manrope","Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  line-height:1.5;
  font-size:16px;
}

img {
  max-width:100%;
  height:auto;
  border-radius:12px;
  display:block;
}

a {
  color:var(--text-main);
  text-decoration:none;
}
a:hover {
  color:var(--accent);
}

.page-wrap {
  max-width:var(--max-width-page);
  margin:0 auto;
  padding:16px;
}

header.site-header {
  position:sticky;
  top:0;
  z-index:999;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
  box-shadow:0 4px 16px rgba(0,0,0,.04);
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:var(--max-width-page);
  margin:0 auto;
  padding:12px 16px;
}

.brand-area {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  font-size:18px;
  color:var(--text-main);
}
.brand-area img.custom-logo {
  max-height:32px;
  height:auto;
  width:auto;
}

.nav-area {
  display:none;
}
.nav-area ul {
  list-style:none;
  display:flex;
  gap:20px;
  margin:0;
  padding:0;
}
.nav-area a {
  font-size:15px;
  font-weight:500;
  color:var(--text-main);
}
.nav-area a:hover {
  color:var(--accent);
}

.header-actions {
  display:flex;
  align-items:center;
  gap:16px;
}

.header-search {
  display:none;
}

.burger {
  width:28px;
  height:20px;
  cursor:pointer;
  display:block;
  position:relative;
}
.burger span {
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:var(--text-main);
  border-radius:1px;
}
.burger span:nth-child(1){top:0;}
.burger span:nth-child(2){top:9px;}
.burger span:nth-child(3){top:18px;}

.mobile-menu {
  display:none;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
  box-shadow:0 16px 40px rgba(0,0,0,.08);
}
.mobile-menu-inner {
  max-width:var(--max-width-page);
  margin:0 auto;
  padding:16px;
}
.mobile-menu-inner nav ul {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-menu-inner a {
  font-size:16px;
  font-weight:500;
  color:var(--text-main);
}

.home-layout {
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  margin-bottom:32px;
}
.home-maincol {
  display:grid;
  gap:32px;
}
.home-sidebar {
  display:grid;
  gap:24px;
}

.breaking-section {
  width:100%;
}
.breaking-strip {
  background:var(--bg-card);
  border-radius:var(--radius-card);
  border:var(--border-card);
  box-shadow:var(--shadow-card);
  padding:12px 16px;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:12px;
}
.breaking-label {
  background:var(--breaking);
  color:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1;
  border-radius:999px;
  padding:4px 8px;
}
.breaking-headline {
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  color:var(--text-main);
}

.top-main-card {
  background:var(--bg-card);
  border-radius:var(--radius-card);
  border:var(--border-card);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.top-main-card .thumb {
  width:100%;
  background:#dfe3f9;
  overflow:hidden;
  position:relative;
}
.top-main-card .thumb img {
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:0;
  display:block;
}

.hero-overlay {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:16px 16px 20px;
  background:linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 100%);
  color:#fff;
  font-size:13px;
  line-height:1.4;
  font-weight:500;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.hero-overlay .hero-dot {
  opacity:.7;
}
.hero-views {
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.hero-views svg {
  width:14px;
  height:14px;
  fill:#fff;
  opacity:.9;
  flex-shrink:0;
  transform:translateY(1px);
}

.top-main-card .content {
  padding:16px;
}

.post-category-badge {
  display:inline-block;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  line-height:1;
  font-weight:500;
  border-radius:999px;
  padding:3px 8px;
  margin-bottom:8px;
  white-space:nowrap;
  width:auto;
  max-width:100%;
}
.post-category-badge a {
  color:#fff;
  text-decoration:none;
  display:inline-block;
}
.post-category-badge a:hover {
  color:#fff;
  opacity:.9;
}

.post-title {
  font-size:20px;
  font-weight:600;
  line-height:1.3;
  color:var(--text-main);
  margin:0 0 8px 0;
}
.post-excerpt {
  color:var(--text-dim);
  font-size:15px;
  line-height:1.5;
  margin:0 0 12px 0;
}
.post-meta {
  font-size:13px;
  color:var(--text-dim);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  line-height:1.4;
}
.views-inline {
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--text-dim);
  font-size:13px;
  line-height:1.4;
}
.views-inline svg {
  width:13px;
  height:13px;
  fill:var(--text-dim);
  opacity:.9;
  flex-shrink:0;
  transform:translateY(1px);
}

.latest-section {
  width:100%;
}
.section-header-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.section-title {
  font-size:18px;
  font-weight:600;
  margin:0;
  color:var(--text-main);
}
.section-link {
  font-size:14px;
  color:var(--accent);
  font-weight:500;
}

.latest-list-vertical {
  display:grid;
  gap:16px;
}

.post-card {
  background:var(--bg-card);
  border-radius:var(--radius-card);
  border:var(--border-card);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.post-card-row {
  display:flex;
  flex-direction:row;
  align-items:stretch;
}

.post-card-row .thumb-row {
  flex:0 0 180px;
  max-width:180px;
  background:#dfe3f9;
  overflow:hidden;
  display:flex;
  align-items:stretch;
}
.post-card-row .thumb-row a {
  display:block;
  width:100%;
  height:100%;
  flex:1;
}
.post-card-row .thumb-row img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:0;
  display:block;
}

.post-card-row .body {
  flex:1;
  padding:16px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
}

.post-card .thumb {
  width:100%;
  background:#dfe3f9;
  overflow:hidden;
}
.post-card .thumb img {
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:0;
  display:block;
}
.post-card .body {
  padding:16px;
}

.home-sidebar .sidebar-section {
  background:var(--bg-card);
  border-radius:var(--radius-card);
  border:var(--border-card);
  box-shadow:var(--shadow-card);
  padding:16px;
}
.sidebar-title {
  margin:0 0 16px 0;
  font-size:16px;
  font-weight:600;
  color:var(--text-main);
}
.sidebar-list {
  display:grid;
  gap:16px;
}
.sidebar-card {
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.sidebar-rank {
  min-width:24px;
  height:24px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:24px;
  text-align:center;
}
.sidebar-post-title {
  margin:0 0 6px 0;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  color:var(--text-main);
}
.sidebar-post-title a {
  color:var(--text-main);
}

.single-wrap {
  max-width:var(--max-width-content);
  margin:0 auto;
  background:var(--bg-card);
  border-radius:var(--radius-card);
  border:var(--border-card);
  box-shadow:var(--shadow-card);
  padding:24px;
}

.single-head .cat-badge {
  display:inline-block;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  font-weight:500;
  line-height:1;
  border-radius:999px;
  padding:3px 8px;
  margin-bottom:12px;
}
.single-head .cat-badge a {
  color:#fff;
  text-decoration:none;
}

.single-head h1 {
  margin:0 0 12px 0;
  font-size:28px;
  line-height:1.2;
  font-weight:600;
  color:var(--text-main);
}

.single-desc {
  font-size:17px;
  line-height:1.5;
  color:var(--text-dim);
  margin:0 0 16px 0;
}

.single-meta {
  font-size:14px;
  color:var(--text-dim);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:24px;
}

.single-heroimg {
  border-radius:12px;
  overflow:hidden;
  margin-bottom:24px;
}
.single-heroimg img {
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

.single-content {
  font-size:17px;
  line-height:1.7;
  color:var(--text-main);
}
.single-content a {
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-thickness:1px;
  color:var(--accent);
}
.single-content a:hover {
  opacity:.9;
}
.single-content blockquote {
  margin:16px 0;
  padding:12px 16px;
  background:#f8f9fc;
  border-left:4px solid var(--accent);
  border-radius:12px;
  color:var(--text-main);
}
.single-content blockquote p {
  margin:0;
}
.single-content table {
  width:100%;
  border-collapse:collapse;
  margin:16px 0;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  overflow:hidden;
}
.single-content thead th {
  background:#f3f5ff;
  font-weight:600;
}
.single-content th,
.single-content td {
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
  text-align:left;
  vertical-align:top;
}
.single-content tr:nth-child(even) td {
  background:#fafbff;
}
.single-content ul,
.single-content ol {
  margin:0 0 16px 20px;
  padding:0;
}
.single-content li {
  margin:6px 0;
}

.single-content .post-views,
.single-wrap .post-views {
  display:none !important;
}

.cat-head {
  margin-bottom:24px;
}
.cat-head h1 {
  font-size:24px;
  line-height:1.3;
  font-weight:600;
  margin:0 0 8px 0;
  color:var(--text-main);
}
.cat-head .cat-desc {
  font-size:15px;
  color:var(--text-dim);
  max-width:600px;
}

.cat-featured-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-bottom:24px;
}

.cat-list-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.latest-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.related-grid .post-card {
  box-shadow:none;
  border:var(--border-card);
  border-radius:var(--radius-card);
  background:var(--bg-card);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.related-grid .post-card .thumb {
  background:#dfe3f9;
  overflow:hidden;
  border-radius:0;
}
.related-grid .post-card .thumb img {
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:0;
  display:block;
}
.related-grid .post-card .body {
  padding:12px;
}
.related-grid .post-card .post-title {
  font-size:16px;
  line-height:1.3;
  margin-top:4px;
}

.site-footer {
  background:var(--footer-bg);
  color:var(--footer-text);
  margin-top:40px;
  padding-top:40px;
}
.footer-inner {
  max-width:var(--max-width-page);
  margin:0 auto;
  padding:0 16px 32px 16px;
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
.footer-block h4 {
  color:#fff;
  font-size:15px;
  font-weight:600;
  margin:0 0 12px 0;
}
.footer-block p,
.footer-block a,
.footer-block li {
  color:var(--footer-text);
  font-size:14px;
  line-height:1.6;
  margin:0;
}
.footer-block ul {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.footer-legal {
  border-top:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:var(--footer-text);
  text-align:center;
  padding:16px;
}

.cookie-banner {
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  background:#0F1118;
  color:#fff;
  border-radius:16px;
  box-shadow:0 24px 48px rgba(0,0,0,.4);
  padding:16px;
  z-index:99999;
  display:none;
  max-width:calc(var(--max-width-page) - 32px);
  margin:0 auto;
  font-size:14px;
  line-height:1.5;
  border:1px solid rgba(255,255,255,.08);
}
.cookie-inner {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cookie-text {
  color:var(--footer-text);
  font-size:14px;
  line-height:1.5;
}
.cookie-text p { margin:0; }
.cookie-text a {
  color:#fff;
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-thickness:1px;
}
.cookie-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.cookie-accept {
  background:var(--accent);
  border:0;
  border-radius:999px;
  color:#fff;
  font-size:14px;
  font-weight:600;
  line-height:1;
  padding:10px 16px;
  cursor:pointer;
}
.cookie-accept:hover { opacity:.9; }
.cookie-reject {
  background:transparent;
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  line-height:1;
  padding:10px 16px;
  cursor:pointer;
}
.cookie-reject:hover { background:rgba(255,255,255,.06); }
.cookie-close {
  position:absolute;
  top:4px;
  left:8px;
  right:auto;
  background:transparent;
  border:0;
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  padding:4px;
  opacity:.7;
}
.cookie-close:hover { opacity:1; }

.snorfi-searchform {
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding:6px 10px;
  box-shadow:0 4px 16px rgba(0,0,0,.04);
}
.snorfi-search-input {
  border:0;
  outline:none;
  font-size:14px;
  line-height:1.4;
  color:var(--text-main);
  min-width:140px;
  background:transparent;
}
.snorfi-search-button {
  background:var(--accent);
  border:0;
  border-radius:999px;
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1;
  padding:6px 10px;
  cursor:pointer;
}
.snorfi-search-button:hover {
  opacity:.9;
}

.screen-reader-text {
  position:absolute;
  left:-9999px;
}

@media(min-width:768px){
  .nav-area{display:block;}
  .burger{display:none;}
  .header-search{display:block;}

  .related-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
  }

  .footer-inner {
    grid-template-columns:1fr 1fr 1fr;
  }

  .cookie-inner {
    flex-direction:row;
    align-items:flex-start;
    justify-content:space-between;
  }
  .cookie-text {
    max-width:70%;
  }
}

@media(min-width:1024px){
  header.site-header .header-inner {
    padding:12px 24px;
  }
  .page-wrap {
    padding:24px;
  }
  .post-title {
    font-size:22px;
  }
  .single-head h1 {
    font-size:32px;
  }
  .home-layout {
    grid-template-columns:2fr 1fr;
  }
  .cat-featured-grid {
    grid-template-columns:2fr 1fr;
  }
  .cat-list-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .latest-grid {
    grid-template-columns:repeat(3,1fr);
  }
  .brand-area img.custom-logo {
    max-height:40px;
  }
}
