/*
Theme Name: Strazci Fandalinu
Theme URI: https://example.com
Author: DOUŠA.tech
Author URI: https://dousa.tech
Description: Fantasy, dark-themed, Bootstrap-enabled WordPress theme with Elementor compatibility.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strazci-fandalinu
Tags: custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, one-column, responsive-layout, theme-options
*/

/* Base */
:root {
  --site-max-width: 1200px;
  --site-bg-color: #0b0b0c;
  --site-text-color: #d4d4d4;
  --site-heading-color: #ece5d0;
  --site-link-color: #b3162a;
  --site-link-hover: #e03b4f;
  --block-bg-color: #111114;
  --block-bg-opacity: 0.15;
  --site-font-family: "Cormorant Upright", "Times New Roman", serif;
  --site-font-size: 18px;
  --site-line-height: 1.7;
  --site-bg-image: none;
  --ornament-opacity: 0;
  --ornament-scale: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--site-font-family);
  font-size: var(--site-font-size);
  line-height: var(--site-line-height);
  color: var(--site-text-color);
  background-color: var(--site-bg-color);
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--ornament-opacity);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(227, 59, 79, 0.22) 0, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(236, 229, 208, 0.16) 0, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.01) 60%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 22px
    );
  background-size: auto, auto, auto, var(--ornament-scale) var(--ornament-scale);
  mix-blend-mode: screen;
  z-index: 0;
}

a {
  color: var(--site-link-color);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--site-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-container {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.site-block {
  background-color: var(--block-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

/* Header */
.site-header {
  padding: 2rem 0 1.25rem;
}

.strazci-sticky-header .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-title {
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--site-heading-color);
  margin: 0;
  text-shadow: 0 0 12px rgba(227, 59, 79, 0.45);
}

.site-description {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  color: rgba(236, 229, 208, 0.8);
}

.site-logo img {
  max-height: 80px;
  width: auto;
  display: block;
}

/* Navigation */
.main-nav {
  margin-top: 1.5rem;
}

.main-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.main-nav .menu > li {
  flex: 1 1 140px;
}

.main-nav .menu > li > a {
  display: block;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(227, 59, 79, 0.6);
  background: rgba(179, 22, 42, 0.2);
  color: var(--site-heading-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav .menu > li > a:hover,
.main-nav .menu > li > a:focus {
  background: rgba(179, 22, 42, 0.35);
  border-color: rgba(227, 59, 79, 0.9);
  transform: translateY(-2px);
}

/* Content */
.site-content {
  padding: 2rem 0 3rem;
}

.entry-title {
  color: var(--site-heading-color);
  margin-top: 0;
  text-shadow: 0 0 10px rgba(227, 59, 79, 0.35);
}

.entry-content {
  margin-top: 1rem;
}

.post-thumb img {
  max-height: 150px;
  width: auto;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-widgets .widget {
  padding: 1rem;
  background-color: var(--block-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer .site-info {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(212, 212, 212, 0.75);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 1.5rem;
  }

  .site-branding {
    flex-direction: column;
    align-items: flex-start;
  }

}
.metal-divider {
  height: 10px;
  margin: 1.25rem 0;
  background:
    linear-gradient(90deg, transparent 0, rgba(236, 229, 208, 0.6) 25%, rgba(227, 59, 79, 0.6) 50%, rgba(236, 229, 208, 0.6) 75%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Hero */
.hero {
  padding: 3rem 2rem;
  text-align: center;
}

.hero .hero-title {
  font-size: clamp(2.6rem, 3.5vw, 3.8rem);
  margin: 0 0 0.75rem;
  color: var(--site-heading-color);
  text-shadow: 0 0 18px rgba(227, 59, 79, 0.5);
}

.hero .hero-lead {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(212, 212, 212, 0.9);
  font-size: 1.2rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(236, 229, 208, 0.2);
  background: rgba(12, 12, 14, 0.85);
  color: var(--site-text-color);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}

button,
input[type="submit"],
.button,
.wp-element-button,
.elementor-button {
  background: rgba(179, 22, 42, 0.3);
  border: 1px solid rgba(227, 59, 79, 0.7);
  color: var(--site-heading-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover,
.elementor-button:hover {
  background: rgba(179, 22, 42, 0.45);
  border-color: rgba(227, 59, 79, 0.95);
  transform: translateY(-2px);
}

/* Elementor */
.elementor-heading-title {
  color: var(--site-heading-color);
  text-shadow: 0 0 10px rgba(227, 59, 79, 0.35);
}

.elementor-widget-text-editor,
.elementor-widget-theme-post-content {
  color: var(--site-text-color);
}

/* Gutenberg editor alignment */
.wp-block {
  max-width: var(--site-max-width);
}
.fantasy-toggler {
  margin-left: auto;
  border: 1px solid rgba(227, 59, 79, 0.8);
  background: rgba(179, 22, 42, 0.25);
  padding: 0.45rem 0.65rem;
}

.fantasy-toggler .toggler-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--site-heading-color);
  margin: 4px 0;
}

@media (max-width: 991px) {
  .main-nav .menu {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .main-nav .menu > li {
    flex: 1 1 100%;
  }

  .main-nav .menu > li > a {
    width: 100%;
  }
}
