/*
Theme Name: 101 Desideri
Description: Tema minimalista per il plugin '101 Desideri' - design ultra-minimal con colore primario giallo #FFD200
Version: 1.0
Author: 101 Desideri Team
Text Domain: 101desideri
*/

/* CSS Variables */
:root {
  --color-primary: #FFD200;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f5f5;
  --max-width: 900px;
  --padding-side: 1.5rem;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-side);
}

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-primary);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
}

.main-navigation a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--color-primary);
}

/* CTA Button */
.cta-button {
  background: var(--color-primary);
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #e6bd00;
  transform: translateY(-1px);
}

/* Main Content */
.site-main {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

/* Home Page Intro */
.home-intro {
  text-align: center;
  padding: 4rem 0;
  background: var(--color-bg-secondary);
  margin-bottom: 3rem;
}

.home-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.home-intro p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

a:hover {
  text-decoration: none;
}

/* Plugin Styles */
.desideri-form {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 2rem 0;
}

.desideri-list {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background: var(--color-bg-secondary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-content {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.footer-content a {
  color: var(--color-text-light);
  margin: 0 1rem;
}

.footer-content a:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-navigation ul {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .home-intro h1 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* Accessibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Loading lazy images */
img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.post-card .post-content {
  padding: 1.5rem;
}

.post-card .entry-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-card .entry-title a {
  color: var(--color-text);
  text-decoration: none;
}

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

.post-card .entry-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.post-card .entry-summary {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-card .read-more {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* Single Post Styles */
.single-post .entry-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post .entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.single-post .entry-meta {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.single-post .entry-tags {
  margin-top: 0.5rem;
}

.single-post .post-thumbnail {
  margin: 2rem 0;
  text-align: center;
}

.single-post .post-thumbnail img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Author Info */
.author-info {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-bg-secondary);
  border-radius: 8px;
  margin: 2rem 0;
}

.author-avatar img {
  border-radius: 50%;
}

.author-name {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.author-name a {
  color: var(--color-text);
  text-decoration: none;
}

.author-name a:hover {
  color: var(--color-primary);
}

.author-description {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #eee;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  padding: 1rem;
  border-radius: 8px;
  background: var(--color-bg-secondary);
  transition: background 0.2s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  background: #ebebeb;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  display: block;
  font-weight: 500;
}

/* Page Desideri Styles */
.page-desideri .content-separator {
  height: 1px;
  background: #eee;
  margin: 2rem 0;
}

.desideri-section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--color-bg-secondary);
  border-radius: 8px;
}

.desideri-section h2 {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.add-desire-cta {
  text-align: center;
  margin: 2rem 0;
}

.new-desire-form {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
}

.auth-buttons {
  text-align: center;
  margin: 2rem 0;
}

.plugin-notice,
.plugin-not-active {
  text-align: center;
  padding: 2rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  color: #856404;
}

.demo-form {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.demo-form::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 3rem 0;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results .page-title {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* Page Links */
.page-links {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: 8px;
}

.page-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
}

.page-links a:hover {
  background: #e6bd00;
}