/*
Theme Name: The Innovation Brief
Description: A premium editorial news website theme inspired by TheInformation.com. Clean, minimal, and typography-focused design suitable for high-end tech publications.
Version: 1.0.0
Author: Custom Theme
Text Domain: innovation-brief
*/

/* CSS Variables - Black and White Only */
:root {
  --primary-font: 'Georgia', 'Times New Roman', serif;
  --secondary-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --background-color: #ffffff;
  --text-color: #000000;
  --heading-color: #000000;
  --accent-color: #000000;
  --muted-color: #f5f5f5;
  --border-color: #000000;
  --gray-text: #333333;
  --light-text: #666666;
  --max-width: 1200px;
  --container-padding: 1.5rem;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--primary-font);
  font-weight: 400;
  line-height: 1.2;
  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;
}

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

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

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

/* Grid system */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

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

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

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Responsive design */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 375px) {
  :root {
    --container-padding: 0.75rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Additional Styles for Enhanced Design */

/* Sticky Header Styles */
.site-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.nav-menu a {
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

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

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Card Hover Effects */
.article-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #a0001a;
  transform: translateY(-2px);
}

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

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

/* Prose Styles for Content */
.prose {
  color: var(--text-color);
  line-height: 1.7;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: var(--primary-font);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1:first-child, .prose h2:first-child, .prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose a {
  color: var(--accent-color);
  text-decoration: underline;
}

.prose a:hover {
  text-decoration: none;
}

.prose blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--gray-text);
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.prose code {
  background-color: var(--muted-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

.prose pre {
  background-color: var(--muted-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.pagination .current {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Breadcrumb Styles */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--gray-text);
}

.breadcrumb a {
  color: var(--gray-text);
  text-decoration: none;
}

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

/* Social Share Styles */
.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--muted-color);
  transition: all 0.3s ease;
}

.share-buttons a:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Newsletter Banner Styles */
.newsletter-banner {
  border-bottom: 1px solid var(--border-color);
}

.newsletter-form input {
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(198, 0, 33, 0.1);
}

/* Footer Styles */
.footer-widget-title {
  font-family: var(--primary-font);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.footer-menu {
  list-style: none;
  padding: 0;
}

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

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

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

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-full,
.logo-compact {
  max-width: 100%;
  height: auto;
}

/* Site Branding */
.site-branding {
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  line-height: 1;
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-text);
}
