/*
Theme Name: Allerin 2025
Theme URI: https://www.allerin.com
Author: Allerin
Author URI: https://www.allerin.com
Description: Modern Allerin theme matching the 2025 website design
Version: 2.0.0
License: Proprietary
Text Domain: allerin
*/

/* ========================================
   CSS Variables - Allerin Design System
======================================== */
:root {
  --background: #fcfcfc;
  --foreground: #1e2a3a;
  --primary: #0099cc;
  --data-orange: #f5a623;
  --data-teal: #26a69a;
  --data-blue: #3b82f6;
  --data-amber: #f59e0b;
  --muted: #f1f5f9;
  --muted-foreground: #5a6a7a;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --outline: #d1d9e6;
  
  --gradient-warm: linear-gradient(135deg, #f5a623, #f59e0b);
  --gradient-cool: linear-gradient(135deg, #26a69a, #0099cc);
  --gradient-data: linear-gradient(90deg, #f5a623, #f59e0b, #26a69a, #0099cc);
  --gradient-cta: linear-gradient(90deg, #f5a623, #26a69a);
  
  --shadow-soft: 0 2px 8px rgba(30, 42, 58, 0.08);
  --shadow-medium: 0 4px 16px rgba(30, 42, 58, 0.12);
  
  --radius: 0.5rem;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* ========================================
   Base Styles
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--data-teal);
}

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

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
  font-weight: 600;
  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; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

/* ========================================
   Header
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 252, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

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

.nav-item-blog a {
  color: var(--data-teal);
  font-weight: 600;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(38, 166, 154, 0.3);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: rgba(38, 166, 154, 0.5);
  background: rgba(38, 166, 154, 0.05);
  color: var(--foreground);
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--gradient-cool);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--foreground);
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: var(--background);
  border-top: 1px solid var(--outline);
  margin-top: 4rem;
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 2rem;
}

.footer-brand {
  padding-right: 2rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--data-teal);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--data-orange);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(38, 166, 154, 0.1);
  color: var(--data-teal);
  border-color: rgba(38, 166, 154, 0.3);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--data-teal);
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--outline);
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.newsletter-form h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter-form form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(38, 166, 154, 0.3);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--background);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--data-teal);
}

.newsletter-form .btn {
  white-space: nowrap;
}

.newsletter-form p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
  align-items: flex-end;
}

.footer-utility-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-utility-links a:hover {
  color: var(--data-teal);
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
}

.footer-copyright p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* ========================================
   Main Content Area
======================================== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.content-area {
  max-width: 800px;
}

/* ========================================
   Blog Post Styles
======================================== */
.blog-post {
  background: white;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.blog-post h2 a {
  color: var(--foreground);
}

.blog-post h2 a:hover {
  color: var(--data-teal);
}

.post-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.post-meta a {
  color: var(--data-teal);
}

.post-categories,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.post-categories a,
.post-tags a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.post-categories a {
  background: var(--gradient-cta);
  color: white;
}

.post-categories a:hover {
  background: var(--gradient-cool);
  color: white;
}

.post-tags a {
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--muted-foreground);
}

.post-tags a:hover {
  background: rgba(38, 166, 154, 0.1);
  border-color: rgba(38, 166, 154, 0.3);
  color: var(--data-teal);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--data-teal);
  font-weight: 500;
}

.read-more:hover {
  gap: 0.75rem;
}

/* ========================================
   Single Post
======================================== */
.single-post .entry-header {
  margin-bottom: 2rem;
}

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

.single-post .entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single-post .entry-content p {
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.single-post .entry-content a {
  color: var(--data-teal);
  text-decoration: underline;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.single-post .entry-content li {
  margin-bottom: 0.5rem;
}

.single-post .entry-content blockquote {
  border-left: 4px solid var(--data-teal);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.single-post .entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ========================================
   Sidebar
======================================== */
.sidebar {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
}

.sidebar .widget {
  margin-bottom: 2rem;
}

.sidebar .widget:last-child {
  margin-bottom: 0;
}

.sidebar .widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--data-teal);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  color: var(--muted-foreground);
}

.sidebar a:hover {
  color: var(--data-teal);
}

/* ========================================
   Comments
======================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--outline);
}

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

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

.comment {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--data-teal);
}

.comment-form .btn {
  margin-top: 0.5rem;
}

/* ========================================
   Pagination
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: rgba(38, 166, 154, 0.1);
  border-color: rgba(38, 166, 154, 0.3);
  color: var(--data-teal);
}

.pagination .current {
  background: var(--gradient-cta);
  color: white;
  border-color: transparent;
}

/* ========================================
   Search Form
======================================== */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}

.search-form input:focus {
  outline: none;
  border-color: var(--data-teal);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 3;
    padding-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-buttons {
    display: none;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .footer-bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-utility-links {
    justify-content: flex-start;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .single-post .entry-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .newsletter-form form {
    flex-direction: column;
  }
}

/* ========================================
   Utility Classes
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* Hide WordPress admin bar styling conflicts */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
