/*
Theme Name: Osnovata
Author: Deyan
Author URI: https://example.com
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
*/

/* Google Fonts are enqueued in functions.php (osnovata_scripts) - do not @import here too, it doubles the request */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #f5f5f4;
  color: #1c1917;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

@font-face {
    font-family: "Kelly-Slab";
    src: url("KellySlab-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.site-title,
.article-title {
  font-family: 'Kelly-Slab', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body,
p {
  font-family: 'Lato', sans-serif;
}

/* Header */
.site-header {
  background-color: #ffffff;
  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;
}

.site-title {
  font-size: 2.5rem;
  color: #1c1917;
  cursor: pointer;
  transition: color 0.3s;
}

.site-title:hover {
  color: #ef4444;
}

.menu-link:hover {
  color: #ef4444 !important;
  text-decoration: underline !important;
}

/* Category Navigation */
.category-nav {
  background-color: #ffffff;
  border-bottom: 1px solid #e7e5e4;
}

.category-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.category-nav-links {
  display: flex;
  overflow-x: auto;
}

.category-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.category-search-form,
.search-form {
  display: flex;
  align-items: center;
}

.category-search-input,
.search-field {
  background-color: #f5f5f4;
  border: 1px solid #d6d3d1;
  color: #1c1917;
  padding: 0.4rem 0.75rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  width: 140px;
}

.category-search-input::placeholder,
.search-field::placeholder {
  color: #78716c;
  text-transform: uppercase;
}

.category-search-submit,
.search-submit {
  background: transparent;
  border: none;
  color: #78716c;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

.category-search-submit:hover,
.search-submit:hover {
  color: #ef4444;
}

.search-icon {
  display: block;
}

.meta-icon {
  vertical-align: -2px;
  margin-right: 0.15rem;
}

.category-link {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  color: #57534e;
  background: transparent;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-family: 'Kelly-Slab', sans-serif;
}

.category-link:hover {
  background-color: #f5f5f4;
  color: #1c1917;
  text-decoration: underline;
}

.category-link.active {
  background-color: #b91c1c;
  color: #ffffff;
}

/* 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: #ffffff;
  border: 2px solid #e7e5e4;
  box-shadow: 0 20px 25px -5px rgba(28, 25, 23, 0.1);
}

.featured-image {
  position: relative;
  display: block;
  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: #57534e;
  margin-bottom: 1.5rem;
}

.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;
}

.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: #ffffff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 10px 15px -3px rgba(28, 25, 23, 0.06);
  transition: all 0.3s;
}

.article-card:hover {
  box-shadow: 0 20px 25px -5px rgba(28, 25, 23, 0.12);
  border-color: #b91c1c;
}

.article-image {
  position: relative;
  display: block;
  height: 224px;
  overflow: hidden;
  cursor: pointer;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-image-placeholder,
.featured-image .article-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
}

.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;
  transition: color 0.3s;
}

.article-card:hover .article-title {
  color: #b91c1c;
}

.article-title a:hover {
  text-decoration: underline;
}

.continue-reading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #b91c1c;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.continue-reading:hover {
  background-color: #991b1b;
  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 #e7e5e4;
}

.single-article-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-full-content {
  color: #292524;
  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: #ffffff;
  padding: 4rem 1rem;
  border-top: 2px solid #e7e5e4;
  text-align: center;
}

.newsletter-icon {
  color: #b91c1c;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.newsletter-container {
  max-width: 768px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.newsletter-description {
  color: #57534e;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.subscribe-message {
  color: #ef4444;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 448px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: #f5f5f4;
  border: 1px solid #d6d3d1;
  color: #1c1917;
  font-family: 'Lato', sans-serif;
}

.newsletter-input::placeholder {
  color: #78716c;
  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;
}

.newsletter-submit:hover {
  background-color: #991b1b;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  padding: 3rem 1rem;
  border-top: 2px solid #e7e5e4;
}

.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: #1c1917;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #57534e;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.footer-links a {
  color: #57534e;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #e7e5e4;
  text-align: center;
  font-size: 0.875rem;
  color: #57534e;
}

/* 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: #292524;
  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;
  }

  .footer-main {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .single-article-title {
    font-size: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-search-input {
    width: 90px;
  }
}

/* Utility */
.thumbnail-wrap {
  margin-bottom: 2rem;
}

.single-thumbnail {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.back-button-wrap {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e7e5e4;
}

.pagination-wrap {
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.empty-state {
  color: #78716c;
  text-align: center;
  grid-column: 1 / -1;
}

/* Comments */
.comments-area {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 2rem 1rem 0;
  border-top: 1px solid #e7e5e4;
}

.comments-title,
.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
}

.comment-list .comment {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e7e5e4;
}

.comment-author .fn {
  font-weight: 700;
  font-style: normal;
}

.comment-metadata {
  font-size: 0.8rem;
  color: #57534e;
  margin-bottom: 0.5rem;
}

.comment-content p {
  margin-bottom: 0.75rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f5f5f4;
  border: 1px solid #d6d3d1;
  color: #1c1917;
  font-family: 'Lato', sans-serif;
  margin-bottom: 1rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.comment-form .form-submit input[type="submit"] {
  padding: 0.75rem 1.5rem;
  background-color: #b91c1c;
  color: #ffffff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.comment-form .form-submit input[type="submit"]:hover {
  background-color: #991b1b;
  text-decoration: underline;
}