/*
Theme Name: Osnovata
Author: Deyan
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osnovata
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@300;400;700&family=Kelly+Slab&display=swap');

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #000000;
  color: #f5f5f4;
  line-height: 1.6;
/*   transition: background-color 0.3s, color 0.3s; */
}

body.light-theme {
  background-color: #f5f5f4;
  color: #1c1917;
}

body.light-theme .site-header {
  background-color: #ffffff;
  border-bottom-color: #b91c1c;
}

body.light-theme .category-nav {
  background-color: #ffffff;
  border-bottom-color: #e7e5e4;
}

body.light-theme .category-link {
  color: #57534e;
}

body.light-theme .category-link:hover {
  background-color: #f5f5f4;
  color: #b91c1c !important;
}

body.light-theme .category-link.active {
  background-color: #b91c1c;
  color: #ffffff;
}

body.light-theme .featured-grid,
body.light-theme .article-card {
  background-color: #ffffff;
  border-color: #e7e5e4;
}

body.light-theme .article-card:hover {
  border-color: #b91c1c;
}

body.light-theme .article-title,
body.light-theme .featured-title,
body.light-theme .site-title,
body.light-theme .menu-link {
  color: #1c1917;
}

body.light-theme .article-meta {
  color: #78716c;
}

body.light-theme .newsletter-section {
  background-color: #f5f5f4;
  border-top-color: #e7e5e4;
}

body.light-theme .newsletter-input {
  background-color: #ffffff;
  border-color: #d6d3d1;
  color: #1c1917;
}

body.light-theme .site-footer {
  background-color: #ffffff;
  border-top-color: #e7e5e4;
}

body.light-theme .footer-brand h3,
body.light-theme .site-title {
  color: #1c1917 !important;
}

body.light-theme .article-full-content {
  color: #44403c;
}

body.light-theme .novo-badge,
body.light-theme .article-category {
  background-color: rgba(185, 28, 28, 0.9);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Typography */
.font-lintel,
h1, h2, h3, h4, h5, h6,
.site-title,
.article-title,
.section-title {
  font-family: 'Kelly-Slab', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@font-face {
    font-family: "Kelly-Slab";
    src: url("KellySlab-Regular.woff2") format("woff2"),
         url("KellySlab-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.font-body,
body,
p,
.article-content {
  font-family: 'Lato', sans-serif;
}

/* Header */
.site-header {
  background-color: #000000;
  border-bottom: 4px solid #b91c1c;
  padding: 1.5rem 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Kelly-Slab', sans-serif;

}

.site-title {
  font-size: 2.5rem;
  color: #f5f5f4;
  cursor: pointer;
}

.site-title:hover {
  color: #ffffff !important;
  text-decoration: underline !important;

}

.main-navigation {
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f5f5f4;
	 font-family: 'Kelly-Slab', sans-serif;

}

.menu-link:hover {
  color: #ef4444 !important;
  text-decoration: underline !important;
}

/* Category Navigation */
.category-nav {
  background-color: #000000;
  border-bottom: 1px solid #292524;
}

.category-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  font-family: 'Kelly-Slab', sans-serif;

}

.category-link {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  color: #a8a29e;
  background: transparent;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  flex-shrink: 0;
}

.category-link:hover {
/*   background-color: #1c1917; */
  color: #ffffff !important;
  text-decoration: underline;
}

.category-link.active {
  background-color: #b91c1c;
  color: #ffffff;
}

.category-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-left: 1rem;
}

/* Category Search Form */
.category-search-form {
  display: flex;
  align-items: stretch;
  background-color: #1c1917;
  border: 1px solid #292524;
  height: 36px;
  overflow: hidden;
}

.category-search-input {
  padding: 0 0.75rem;
  background-color: transparent;
  border: none;
  color: #f5f5f4;
  font-size: 0.875rem;
  font-family: 'Lato', sans-serif;
  width: 180px;
  text-transform: uppercase;
}

.category-search-input::placeholder {
  color: #57534e;
  text-transform: uppercase;
}

.category-search-input:focus {
  outline: none;
}

.category-search-submit {
  background: transparent;
  border: none;
  border-left: 1px solid #292524;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.75rem;
  color: #a8a29e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-search-submit:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

body.light-theme .category-search-form {
  background-color: #e7e5e4;
  border-color: #d6d3d1;
}

body.light-theme .category-search-input {
  color: #1c1917;
}

body.light-theme .category-search-input::placeholder {
  color: #78716c;
}

body.light-theme .category-search-submit {
  color: #57534e;
  border-left-color: #d6d3d1;
}

body.light-theme .category-search-submit:hover {
  color: #b91c1c;
  background-color: rgba(185, 28, 28, 0.1);
}

/* Featured Article */
.featured-article {
  max-width: 1120px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: #1c1917;
  border: 2px solid #292524;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body.light-theme .featured-grid {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.featured-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.novo-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #b91c1c;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Kelly-Slab', sans-serif;
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #a8a29e;
  margin-bottom: 1.5rem;
  font-family: 'Kelly-Slab', sans-serif;
	
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #b91c1c;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
	  font-family: 'Kelly-Slab', sans-serif;

}

.read-more-btn:hover {
  text-decoration: underline;
}

/* Articles Grid */
.articles-grid {
  max-width: 1120px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background-color: #1c1917;
  border: 1px solid #292524;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.article-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  border-color: #b91c1c;
}

body.light-theme .article-card {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  color: black;
}

body.light-theme .article-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

body.light-theme .continue-reading{

  color: black;

}

.article-image {
  position: relative;
  height: 224px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Kelly-Slab', sans-serif;
}

.article-content-box {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-card:hover .article-title {
  color: #ffffff;
}

.continue-reading {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.continue-reading:hover {
  color: #ef4444;
  text-decoration: underline;
}

/* Single Article */
.single-article {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #292524;
}

.single-article-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-full-content {
  color: #d6d3d1;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-full-content p {
  margin-bottom: 1.5rem;
}

.article-full-content h2 {
  font-size: 1.875rem;
  color: #ef4444;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #b91c1c;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 3rem;
  text-transform: uppercase;
}

.back-button:hover {
  text-decoration: underline;
}

/* Newsletter */
.newsletter-section {
  background-color: #1c1917;
  padding: 4rem 1rem;
  border-top: 2px solid #292524;
  text-align: center;
}

.newsletter-container {
  max-width: 768px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.newsletter-description {
  color: #a8a29e;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 448px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: #000000;
  border: 1px solid #44403c;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
}

.newsletter-input::placeholder {
  color: #57534e;
  text-transform: uppercase;
}

.newsletter-submit {
  padding: 0.75rem 1.5rem;
  background-color: #b91c1c;
  color: #ffffff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
	 font-family: 'Kelly-Slab', sans-serif;

}

.newsletter-submit:hover {
  background-color: #991b1b;
}

/* Footer */
.site-footer {
  background-color: #000000;
  padding: 3rem 1rem;
  border-top: 2px solid #292524;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #a8a29e;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.footer-links a {
  color: #a8a29e;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #292524;
  text-align: center;
  font-size: 0.875rem;
  color: #a8a29e;
}

/* About Page */
.about-section {
  max-width: 896px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.about-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
}

.about-content {
  color: #d6d3d1;
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-quote {
  color: #ef4444;
  font-weight: 700;
  text-align: center;
  font-size: 1.25rem;
  margin-top: 2rem;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-image {
    height: 300px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .main-navigation {
    display: none;
  }
  
  .footer-main {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .single-article-title {
    font-size: 2rem;
  }
  
  .category-nav-container {
    overflow-x: auto;
  }
  
  .category-search-input {
    width: 150px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Theme Toggle Button */
.theme-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  color: #f5f5f4;
  padding: 0.5rem;
/*   transition: transform 0.2s; */
  user-select: none;
}

.theme-toggle:hover {
/*   transform: scale(1.3);
  color: #ef4444; */
}

body.light-theme .theme-toggle {
  color: #1c1917;
}

body.light-theme .theme-toggle:hover {
  color: #b91c1c;
}