/* ACN Press - Custom Styles */
/* Using Bulma CSS Framework with custom brand colors */

:root {
  /* Brand Colors - Material Blue from original */
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --primary-light: #64B5F6;
  --primary-50: #E3F2FD;

  /* Accent Colors */
  --accent: #FF5722;
  --accent-light: #FF8A65;

  /* Neutral Colors */
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-500: #9E9E9E;
  --gray-700: #616161;
  --gray-900: #212121;

  /* Text Colors */
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-light: #BDBDBD;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background-color: #fff;
}

/* Override Bulma primary color */
.has-background-primary {
  background-color: var(--primary) !important;
}

.has-text-primary {
  color: var(--primary) !important;
}

.button.is-primary {
  background-color: var(--primary);
  border-color: transparent;
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
}

/* Navbar Customization */
.navbar {
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.navbar.is-spaced {
  padding: 1rem 2rem;
}

.navbar-brand .navbar-item {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar-item:hover {
  color: var(--primary) !important;
}

.navbar-burger span {
  background-color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
}

.hero.is-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

/* Top Header Bar */
.top-header {
  background-color: var(--primary);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-header a {
  color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
}

.top-header a:hover {
  color: #fff;
}

/* Article Cards */
.card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.card-content {
  padding: 1.5rem;
}

.card .title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card .title a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

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

/* Category Tags */
.tag.is-primary {
  background-color: var(--primary);
}

.tag.is-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Content Styling */
.content h1 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.content h2 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-50);
}

.content h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2rem;
}

.content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.content ul, .content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

.content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Featured Image */
.featured-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 1.5rem;
}

.footer .title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
}

/* Category Page Header */
.category-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.category-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

/* Article Meta */
.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-meta .author {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Sidebar */
.sidebar .box {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.sidebar .title {
  font-size: 1rem;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 1rem;
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 8px;
  padding: 2rem;
  color: #fff;
  text-align: center;
}

.cta-box .title {
  color: #fff;
}

.cta-box .button {
  background-color: #fff;
  color: var(--primary);
  font-weight: 600;
}

.cta-box .button:hover {
  background-color: var(--gray-100);
}

/* 404 Page */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1;
}

.error-page p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }

  .card-image img {
    height: 150px;
  }

  .content h1 {
    font-size: 1.75rem;
  }

  .content h2 {
    font-size: 1.35rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Utility Classes */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-50 { background-color: var(--primary-50) !important; }
