/*
Theme Name: CCVČ Nitra Motív
Theme URI: https://ccvcnitra.sk
Author: CCVČ Nitra & Antigravity
Author URI: https://ccvcnitra.sk
Description: Jednoduchá, rýchla a plne editovateľná WordPress šablóna pre Cirkevné centrum voľného času v Nitre s kruhovým logom a titulným obrázkom.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: ccvc-nitra
*/

:root {
  --bg-parchment: #faf8ee;
  --bg-page: #ffffff;
  --primary-blue: #4464a1;
  --primary-blue-hover: #334e80;
  --primary-blue-active: #273d66;
  --accent-red: #c9302c;
  --text-main: #2b2b2b;
  --text-muted: #555555;
  --sidebar-bg: #fffdf5;
  --sidebar-border: #f0e6c8;
  --sidebar-header-bg: #faedd0;
  --sidebar-header-text: #7a4b08;
  --border-light: #e2dac2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background-color: var(--bg-parchment);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: var(--primary-blue);
  text-decoration: underline;
}

a:hover {
  color: var(--accent-red);
}

.site-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-page);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  min-height: 100vh;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   HLAVIČKA (HEADER) S TITULNOU FOTKOU
   ========================================== */
.site-header {
  position: relative;
  background-color: #dce4e1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--border-light);
  padding: 20px 25px 15px 25px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.header-search form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #b0bec5;
  border-radius: 3px;
  padding: 2px 5px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-search input[type="search"],
.header-search input[type="text"] {
  border: none;
  outline: none;
  padding: 4px 8px;
  font-size: 13px;
  width: 170px;
  color: #333;
}

.header-search button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  color: #666;
  font-size: 13px;
}

.header-branding {
  display: flex;
  align-items: center;
}

/* KRUHOVÉ LOGO */
.logo-circle-container {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-circle-container img,
.logo-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.logo-symbol {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

.site-titles {
  display: flex;
  flex-direction: column;
}

.site-title-pre {
  font-size: 22px;
  font-weight: bold;
  color: #333333;
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.7);
}

.site-title-main {
  font-size: 36px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}

.header-social {
  position: absolute;
  right: 25px;
  bottom: 12px;
}

.social-fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #1877f2;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}

.social-fb-btn:hover {
  transform: scale(1.08);
  color: #ffffff;
}

/* ==========================================
   NAVIGÁCIA (NAVBAR)
   ========================================== */
.main-navigation {
  background-color: #ffffff;
  border-bottom: 2px solid #5a7bb5;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 15px;
  gap: 4px;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  text-decoration: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-menu li.current-menu-item a,
.nav-menu li.active a,
.nav-menu li a:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================
   HLAVNÉ TELO ROZLOŽENIA (2 STĹPCE)
   ========================================== */
.site-content-layout {
  display: flex;
  padding: 20px 25px 30px 25px;
  gap: 25px;
  background-color: #ffffff;
}

.content-primary {
  flex: 1 1 68%;
  min-width: 0;
}

.content-sidebar {
  flex: 0 0 280px;
  min-width: 260px;
}

/* ==========================================
   OBSAHOVÉ PRVKY A PLAGÁT
   ========================================== */
.page-header-title {
  color: #a31c1c;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 6px;
}

.banner-poster-container {
  background: #ffffff;
  border: 1px solid #dedede;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.banner-poster-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.poster-caption-link {
  font-size: 14px;
  font-weight: bold;
  color: #1a3c75;
  margin: 10px 0 20px 0;
  display: inline-block;
}

.entry-content {
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
}

.entry-content p {
  margin-bottom: 14px;
}

.entry-content ul, 
.entry-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.entry-content h1, 
.entry-content h2, 
.entry-content h3 {
  color: #9c1f1f;
  margin: 20px 0 10px 0;
}

/* ==========================================
   BOČNÝ PANEL (SIDEBAR WIDGETS)
   ========================================== */
.sidebar-widget {
  background-color: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.widget-title {
  background-color: var(--sidebar-header-bg);
  color: var(--sidebar-header-text);
  font-size: 15px;
  font-weight: bold;
  padding: 8px 12px;
  margin: 0;
  border-bottom: 1px solid var(--sidebar-border);
}

.widget-content {
  padding: 12px 14px;
  font-size: 13px;
  color: #3a3a3a;
  line-height: 1.45;
}

.widget-hours p {
  margin-bottom: 6px;
}

.widget-hours strong {
  color: #222;
}

.widget-notices {
  background-color: #fffef8;
}

.notice-title-link {
  display: block;
  font-weight: bold;
  color: #634500;
  text-decoration: underline;
  margin-bottom: 10px;
  line-height: 1.35;
}

.notice-warning-text {
  color: #d32f2f;
  font-style: italic;
  font-size: 12px;
  margin: 10px 0;
  text-align: center;
  line-height: 1.35;
}

.notice-action-links {
  text-align: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #d5c8a0;
}

.notice-button {
  display: block;
  font-weight: bold;
  font-size: 12px;
  color: #2e7d32;
  text-transform: uppercase;
  margin: 6px 0;
  text-decoration: underline;
}

.widget-rss-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #d87a00;
  text-decoration: none;
}

.rss-icon-badge {
  background-color: #f57c00;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* ==========================================
   PÄTIČKA (FOOTER)
   ========================================== */
.site-footer {
  border-top: 2px solid var(--border-light);
  background: #f4f1e6;
  padding: 20px 25px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.footer-bottom-branding {
  margin-top: 10px;
  font-weight: bold;
  color: #888;
}

/* ==========================================
   RESPONZIVITA PRE MOBILY & TABLETY
   ========================================== */
@media (max-width: 768px) {
  .site-content-layout {
    flex-direction: column;
    padding: 15px;
  }
  
  .content-sidebar {
    width: 100%;
    min-width: 100%;
  }

  .site-titles .site-title-pre {
    font-size: 18px;
  }

  .site-titles .site-title-main {
    font-size: 26px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 2px;
  }

  .nav-menu li a {
    border-radius: 0;
  }
}
