/*!
 * Plexicus Theme Styles for COVULOR Blog
 * Custom styling for the COVULOR DevSecOps community
 */

/* CSS Variables for Plexicus Colors */
:root {
  --plexicus-purple: oklch(0.541 0.281 293.009);
  --plexicus-purple-dark: oklch(0.3 0.281 293.009);
  --plexicus-tag-purple: #d5a8dd;
  --plexicus-tag-blue: #5a9fcb;
  --plexicus-tag-orange: #cc9e44;
  --plexicus-bg-primary: #f9fafa;
  --plexicus-bg-white: #ffffff;
  --plexicus-text-primary: #ffffff;
  --plexicus-text-secondary: #9f92a9;
  --plexicus-text-body: #333333;
  --plexicus-text-gray: #cbcbd4;
  --plexicus-accent-beige: #e3cca2;
}

/* Atkinson Font Family */
@font-face {
  font-family: 'Atkinson';
  src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
  font-weight: 400;
  font-style: normal;
}

/* Global Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--plexicus-text-body);
  overflow-x: hidden;
}

/* Content Pages Padding - Fix for fixed navbar */
.site-content {
  min-height: 400px;
}

/* Add padding only to specific pages that need it */
body:not(.has-jumbotron) .site-content {
  padding-top: 80px; /* Add padding to prevent content from being hidden under navbar */
}

/* Remove padding for jumbotron pages (like home) */
.has-jumbotron .site-content {
  padding-top: 0;
}

.remove-site-content-margin {
  margin-top: -30px;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(
    135deg,
    var(--plexicus-purple) 0%,
    var(--plexicus-purple-dark) 100%
  ) !important;
  box-shadow: 0 2px 10px rgba(66, 39, 96, 0.1);
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--plexicus-text-primary) !important;
}

.navbar-nav .nav-link {
  color: var(--plexicus-text-primary) !important;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
  opacity: 0.8;
}

/* Article Cards */
.card {
  background: var(--plexicus-bg-white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--plexicus-text-body);
  margin-bottom: 0.75rem;
}

.card-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--plexicus-text-secondary);
}

/* Tags Styling */
.tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  background-color: var(--plexicus-tag-purple);
  color: #ffffff;
  display: inline-block;
  margin: 0.125rem;
}

.tag.blue {
  background-color: var(--plexicus-tag-blue);
}

.tag.orange {
  background-color: var(--plexicus-tag-orange);
}

/* Section Titles */
h2.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--plexicus-text-body);
  margin-bottom: 2rem;
}

/* Article Meta */
.article-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--plexicus-text-secondary);
}

/* Category Filters */
.category-filter {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  border: 1px solid var(--plexicus-tag-purple);
  color: var(--plexicus-tag-purple);
  background: transparent;
  transition: all 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
  background: var(--plexicus-tag-purple);
  color: #ffffff;
}

/* Footer Styling */
footer {
  background: linear-gradient(135deg, var(--plexicus-purple) 0%, var(--plexicus-purple-dark) 100%);
  color: var(--plexicus-text-primary);
  padding: 3rem 0;
}

/* Button Styling */
.btn-primary {
  background: linear-gradient(135deg, var(--plexicus-purple) 0%, var(--plexicus-purple-dark) 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 39, 96, 0.3);
}

/* Search Styling */
.search-container {
  background: var(--plexicus-bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.search-input {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: var(--plexicus-purple);
  box-shadow: 0 0 0 0.2rem rgba(66, 39, 96, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-title {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--plexicus-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--plexicus-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--plexicus-purple-light);
}
