/**
 * Neonet - Main Theme Stylesheet
 * Scandinavian Interior & Home Design Aesthetic
 */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Nordic Palette */
  --primary: #04796a;
  --primary-light: #0fb39e;
  --primary-dark: #0a6a5e;
  --primary-bg: #e9f7f5;
  --accent: #e05442;
  --accent-light: #f58269;
  --accent-bg: #fff1ee;
  
  --dark: #1d3037;
  --dark-soft: #2a4149;
  --gray-900: #0f191d;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #5f6d80;
  --gray-400: #9da7b4;
  --gray-300: #cbd5e1;
  --gray-200: #eaedf1;
  --gray-100: #f4f6f8;
  --gray-50: #fbfcfd;
  --white: #ffffff;

  --shadow-sm: 0 1px 3px rgba(29, 48, 55, 0.05);
  --shadow-md: 0 4px 14px rgba(29, 48, 55, 0.08);
  --shadow-lg: 0 10px 30px rgba(29, 48, 55, 0.12);
  --shadow-xl: 0 20px 40px rgba(29, 48, 55, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
  --reading-width: 780px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background-color: var(--gray-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.2rem; }

/* Skip Link */
.screen-reader-text {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: var(--dark);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100000;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.screen-reader-text:focus {
  top: 10px;
  left: 10px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: var(--reading-width);
}

/* Top Announcement bar */
.top-notice-bar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-notice-links a {
  color: var(--primary-light);
  margin-left: 16px;
  font-weight: 600;
}

.top-notice-links a:hover {
  color: var(--white);
}

/* Main Site Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

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

.custom-logo-link img,
.site-logo-svg {
  height: 48px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.site-title a {
  color: var(--dark);
  letter-spacing: 1px;
}

.site-title span {
  color: var(--primary-light);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.01em;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-item > a {
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current-menu-item > a::after {
  width: 100%;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(4, 121, 106, 0.25);
  transition: var(--transition);
}

.header-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(4, 121, 106, 0.35);
}

.header-cta-btn::after {
  display: none !important;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1d3037 0%, #0d2127 100%);
  color: var(--white);
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 188, 166, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 89, 85, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--primary-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(120deg, #13bca6, #8fded3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(19, 188, 166, 0.2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-title {
  color: var(--white);
  font-size: 1.25rem;
  margin: 0;
}

.hero-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.hero-card-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-description {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.post-card-thumb-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #1d3037 0%, #0a6a5e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.post-card-thumb-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.3;
}

.post-card-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.post-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.post-card-meta time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-title {
  font-size: 1.3125rem;
  margin-bottom: 14px;
  line-height: 1.35;
}

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

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

.post-card-excerpt {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.post-card-footer {
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* Single Post & Page Article Styles */
.single-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 48px;
  margin: 40px auto 60px;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--gray-600);
}

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

.article-header {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 32px;
  margin-bottom: 36px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 16px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Rich Content Typography */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content p.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--dark);
  font-weight: 500;
}

.entry-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
}

.entry-content h3 {
  margin-top: 36px;
  margin-bottom: 16px;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--gray-50);
  padding: 24px 32px;
  margin: 32px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--dark);
}

.entry-content ul, 
.entry-content ol {
  margin: 24px 0 28px 24px;
}

.entry-content li {
  margin-bottom: 10px;
}

.contact-card {
  background: var(--primary-bg);
  border: 1px solid rgba(4, 121, 106, 0.2);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 32px 0;
}

.contact-card h3 {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 8px;
}

/* Post Navigation (Prev/Next) */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--gray-200);
  margin-top: 48px;
  padding-top: 36px;
}

.post-nav-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.post-nav-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.post-nav-title {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Site Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-light);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
}

.footer-about {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.footer-menu a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .single-article {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .top-notice-bar {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-menu.is-active {
    display: flex;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
