/*
Theme Name: MyTheme
Theme URI: https://example.com
Author: Gerard Borras
Author URI: https://example.com
Description: A modern WordPress theme with Block Editor support
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytheme
Domain Path: /languages

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
*/

/* Layout */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding: 0;
}

/* Header & Navigation */
.site-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.site-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: #0073aa;
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Navigation Menu */
.primary-navigation .menu,
.navbar-nav {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.navbar-nav li {
  list-style: none !important;
}

.primary-navigation .menu li,
.navbar-nav li {
  margin: 0;
}

.primary-navigation .menu a,
.navbar-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.primary-navigation .menu a:hover,
.navbar-nav a:hover {
  color: #0073aa;
}

.primary-navigation .menu .current-menu-item > a,
.navbar-nav .current-menu-item > a {
  color: #0073aa;
  font-weight: 600;
}

/* Posts & Articles */
article {
  padding: 3rem 0;
}

.entry-header {
  margin-bottom: 2rem;
  padding: 0 15px;
}

.entry-content {
  padding: 0 15px;
}

.entry-title {
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

h1:first-child {
  margin-top: 0;
}

.entry-meta {
  font-size: 0.875rem;
  color: #6c757d;
}

.entry-content {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.entry-content p {
  margin-bottom: 1rem;
}

a {
  color: #0073aa;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

.entry-content a {
  color: #0073aa;
}

.entry-content a:hover {
  text-decoration: underline;
}

/* Cards */
.card {
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  object-fit: cover;
  height: 200px;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

.comments-title {
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
}

.footer-menu {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-menu a {
  color: inherit;
  text-decoration: none;
}

.footer-menu a:hover {
  color: #0073aa;
}

/* Pagination */
nav[aria-label="Pagination"] .d-flex {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-content {
    padding: 1.5rem 0;
  }

  .site-branding {
    flex-wrap: wrap;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .footer-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
}
