/* SYSTEM DEFAULT CSS */

:root {
  /* Bright, welcoming color scheme */
  --primary-bg: #FAFAFA;
  --secondary-bg: #FFFFFF;
  --text-color: #333333;
  --text-light: #666666;
  --primary-accent: #4AAAA5;
  --secondary-accent: #F4A261;
  --tertiary-accent: #6BCF7F;
  --border-color: #E0E0E0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --blur: blur(20px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--secondary-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.0rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary-accent);
}

button {
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.spinner {
  border: 4px solid var(--border-color);
  border-radius: 50%;
  border-top: 4px solid var(--primary-accent);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error message styling */
.error-message {
  background-color: rgba(244, 162, 97, 0.1);
  color: var(--secondary-accent);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  border-left: 4px solid var(--secondary-accent);
}

/* Header styles */
.header {
  background-color: color-mix(in srgb, var(--primary-bg) 97%, #000 3%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px var(--shadow-light);
}

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

.logo {
  color: var(--primary-accent);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

/* Logo with image */
.logo-with-image {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo-text {
  color: var(--primary-accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  position: relative;
}

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

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero-title-primary {
  color: var(--text-color);
  font-weight: 400;
}

.hero-title-accent {
  color: var(--primary-accent);
  font-weight: 700;
}

.hero-title-subtitle {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  margin-top: 15px;
  margin-bottom: 24px;
}

.badge-text {
  display: inline-block;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--primary-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-accent) 30%, transparent);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-accent);
  backdrop-filter: var(--blur);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.1rem;
}

.hero-cta.primary {
  background-color: var(--primary-accent);
  color: white;
}

.hero-cta.primary:hover {
  background-color: #3A8A85;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

.hero-cta.secondary {
  background-color: transparent;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.hero-cta.secondary:hover {
  background-color: var(--primary-accent);
  color: white;
  transform: translateY(-2px);
}

/* Blog Section */
.blog-section {
  padding: 5rem 0;
  background-color: var(--primary-bg);
}

.blog-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* When categories are hidden, expand posts to full width */
.blog-content.no-categories {
  grid-template-columns: 1fr !important;
}

.blog-content.no-categories .blog-posts {
  grid-column: 1 !important;
}

/* Alternative approach: when blog-categories is hidden, expand posts */
.blog-content:has(.blog-categories[style*="display: none"]) {
  grid-template-columns: 1fr;
}

.blog-content:has(.blog-categories[style*="display: none"]) .blog-posts {
  grid-column: 1;
}

.blog-categories h3,
.blog-posts h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
}

.category-badge {
  
  padding: 0.5rem 1rem;
  margin: 0.4rem;
  background-color: var(--tertiary-accent);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-badge:hover {
  background-color: var(--tertiary-accent);
  transform: translateY(-2px);
}

.category-badge.clickable {
  cursor: pointer;
  user-select: none;
}

.category-badge.clickable:hover {
  background-color: var(--tertiary-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.category-badge.active {
  background-color: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  padding: 1rem;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  border-left: 4px solid var(--primary-accent);
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.post-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

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

.post-excerpt {
  font-size: 0.8rem !important;
  color: rgba(var(--text-color-rgb), 0.65) !important;
  font-style: italic !important;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.blog-cta {
  margin-top: 2rem;
  text-align: center;
}

/* Portfolio Section */
.portfolio-section {
  padding: 5rem 0;
  background-color: var(--secondary-bg);
}

.portfolio-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-description {
  margin-bottom: 3rem;
}

.portfolio-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.portfolio-cta {
  text-align: center;
}

/* Highlights Section */
.highlights-section {
  padding: 5rem 0;
  background-color: var(--primary-bg);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.highlight-card {
  background-color: var(--secondary-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.highlight-image {
  height: 200px;
  overflow: hidden;
}

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

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

.highlight-content {
  padding: 1.5rem;
}

.highlight-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.highlight-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.highlight-link:hover {
  color: var(--secondary-accent);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--tertiary-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-primary.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Footer styles */
.footer {
  background-color: color-mix(in srgb, var(--primary-bg) 97%, #000 3%);
  color: var(--text-color);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 2px 10px var(--shadow-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo a {
  color: var(--primary-accent);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-site-logo {
  height: 35px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .blog-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Special Menu Links */
.special-menu-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.special-menu-link:hover {
    color: #3498db;
}

/* Highlights Description */
.highlights-description {
    color: #6c757d;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
}

.highlights-description.below {
    margin-top: 3rem;
    margin-bottom: 2rem;
}
