/*
Theme Name: SPSigner Blog Theme
Theme URI: https://spsigner.com
Author: SPSigner
Author URI: https://spsigner.com
Description: Tema WordPress customizado com design moderno inspirado no SPSigner, com layout responsivo, grid de posts e filtros por taxonomias. Paleta de cores roxo e verde.
Version: 1.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spsigner-blog
Tags: blog, two-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 CSS Variables
2.0 Reset & Base Styles
3.0 Typography
4.0 Layout
5.0 Header
6.0 Navigation
7.0 Content
8.0 Posts & Pages
9.0 Archive & Blog
10.0 Footer
11.0 Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Variables
--------------------------------------------------------------*/
:root {
  /* Colors - SPSigner Palette */
  --primary-purple: #6B4FA0;
  --secondary-green: #00C853;
  --dark-purple: #5B3FA0;
  --light-lavender: #F3F0FF;
  --white: #FFFFFF;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --border-accent: #00C853;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-headings: 'Poppins', sans-serif;
  
  /* Font Sizes */
  --font-size-base: 16px;
  --font-size-small: 0.875rem;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Layout */
  --container-width: 1200px;
  --content-width: 800px;
  --border-radius: 8px;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-lavender);
}

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

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/*--------------------------------------------------------------
3.0 Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

p {
  margin-bottom: var(--spacing-md);
}

/*--------------------------------------------------------------
4.0 Layout
--------------------------------------------------------------*/
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
}

/*--------------------------------------------------------------
5.0 Header
--------------------------------------------------------------*/
.site-header {
  background-color: var(--primary-purple);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-headings);
}

.site-logo img {
  max-height: 40px;
  width: auto;
}

/*--------------------------------------------------------------
6.0 Navigation
--------------------------------------------------------------*/
.main-navigation {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--white);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  display: block;
}

.main-navigation a:hover {
  opacity: 0.9;
}

.header-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.btn {
  padding: 0.625rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-purple);
}

.btn-primary {
  background-color: var(--dark-purple);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #4a2359;
}

/*--------------------------------------------------------------
7.0 Content
--------------------------------------------------------------*/
.site-content {
  padding: var(--spacing-xl) 0;
}

.page-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-size: 2.5rem;
  color: var(--text-dark);
}

/*--------------------------------------------------------------
8.0 Posts & Pages
--------------------------------------------------------------*/
.entry-content {
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.entry-content h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.entry-content ul,
.entry-content ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.entry-content li {
  margin-bottom: var(--spacing-xs);
}

/*--------------------------------------------------------------
9.0 Archive & Blog
--------------------------------------------------------------*/
.archive-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.archive-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: var(--text-dark);
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--secondary-green);
  border-radius: var(--border-radius);
  background-color: var(--white);
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.post-card {
  background-color: var(--white);
  border: 2px dashed var(--border-accent);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: var(--spacing-md);
}

.post-card-author {
  font-size: var(--font-size-small);
  color: var(--text-gray);
  margin-bottom: var(--spacing-xs);
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 0;
  color: var(--text-dark);
}

.post-card-title a {
  color: var(--text-dark);
}

.post-card-title a:hover {
  color: var(--primary-purple);
}

/*--------------------------------------------------------------
10.0 Footer
--------------------------------------------------------------*/
.site-footer {
  background-color: var(--dark-purple);
  color: var(--white);
  padding-top: var(--spacing-xl);
}

.footer-cta {
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
  padding: var(--spacing-xl) 0;
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.footer-cta h2 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.footer-cta p {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: var(--spacing-xs);
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-widget a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.social-link:hover {
  background-color: var(--primary-purple);
}

.footer-info {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/*--------------------------------------------------------------
11.0 Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.25rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
  
  .main-navigation {
    display: none;
  }
  
  .header-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .archive-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-select {
    width: 100%;
  }
}
