/* ===========================================
   PixelFlare Design - Main Stylesheet
   =========================================== */

/* CSS Variables */
:root {
  --primary: #2d1b69;
  --primary-light: #4a3a8a;
  --secondary: #ff6b6b;
  --accent: #ffd93d;
  --white: #ffffff;
  --dark: #1a1a2e;
  --charcoal: #2d2d44;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow-sm: 0 2px 4px rgba(45, 27, 105, 0.08);
  --shadow-md: 0 4px 12px rgba(45, 27, 105, 0.12);
  --shadow-lg: 0 8px 24px rgba(45, 27, 105, 0.16);
  --shadow-xl: 0 16px 48px rgba(45, 27, 105, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================================
   Header & Navigation
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

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

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

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.dropdown-menu a i {
  width: 20px;
  color: var(--secondary);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.mobile-nav a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 1.5rem;
}

.mobile-dropdown-menu.active {
  display: flex;
}

.mobile-dropdown-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

/* ===========================================
   Section Styles
   =========================================== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h2, .section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: var(--gray-400);
}

/* ===========================================
   Cards & Features
   =========================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Tool Cards */
.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.tool-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  flex-grow: 1;
}

.tool-card .btn {
  margin-top: 1rem;
  justify-content: center;
}

/* Article Cards */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.article-card-image {
  height: 200px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card h3 a:hover {
  color: var(--secondary);
}

.article-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===========================================
   Tools Page Styles
   =========================================== */
.tools-hero {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}

.tools-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.tools-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Tool Page Layout */
.tool-page {
  padding-top: 80px;
}

.tool-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tool-input-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.tool-output-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.tool-section-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-section-title i {
  color: var(--secondary);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 27, 105, 0.1);
}

input[type="color"] {
  height: 50px;
  padding: 0.25rem;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

/* Color Display */
.color-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.color-swatch {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
}

.color-info {
  flex-grow: 1;
}

.color-info code {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.color-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.copy-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--primary-light);
}

/* Palette Grid */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.palette-color {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.palette-color:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.palette-color::after {
  content: attr(data-hex);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 0.7rem;
  font-family: 'Space Grotesk', monospace;
  text-align: center;
  transform: translateY(100%);
  transition: var(--transition);
}

.palette-color:hover::after {
  transform: translateY(0);
}

/* Preview Box */
.preview-box {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Font Preview */
.font-preview {
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.font-preview h3 {
  margin-bottom: 0.5rem;
}

.font-preview p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Results Area */
.results-area {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: 'Space Grotesk', monospace;
}

.results-area code {
  display: block;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  word-break: break-all;
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.icon-item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.25rem;
  color: var(--gray-700);
}

.icon-item:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

/* Contrast Result */
.contrast-result {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.contrast-pass {
  background: #d4edda;
  color: #155724;
}

.contrast-fail {
  background: #f8d7da;
  color: #721c24;
}

.contrast-ratio {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.contrast-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ===========================================
   Article Page Styles
   =========================================== */
.article-page {
  padding-top: 80px;
}

.article-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.article-hero .container {
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumb span {
  color: var(--white);
}

.article-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.article-meta i {
  margin-right: 0.5rem;
}

.article-content-wrapper {
  padding: 4rem 0;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.5rem;
  color: var(--primary);
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.article-body a {
  color: var(--secondary);
  font-weight: 500;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  position: relative;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

.article-body ol {
  counter-reset: list-counter;
}

.article-body ol li {
  counter-increment: list-counter;
}

.article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  margin: 3rem 0;
}

.article-share span {
  font-weight: 600;
  color: var(--gray-800);
}

.article-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}

.article-share a:hover {
  background: var(--primary);
  color: var(--white);
}

.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Related Articles */
.related-articles {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-300);
}

.related-articles h3 {
  margin-bottom: 2rem;
}

/* ===========================================
   About Page
   =========================================== */
.page-hero {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 4rem 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.page-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.page-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
  position: relative;
}

.page-content li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-column a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a:hover {
  color: var(--secondary);
}

/* ===========================================
   404 Page
   =========================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.error-content {
  text-align: center;
  color: var(--white);
}

.error-content h1 {
  font-size: 8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-content p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* ===========================================
   Utilities
   =========================================== */
.text-center {
  text-align: center;
}

.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; }

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .tool-container {
    grid-template-columns: 1fr;
  }

  .tool-output-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .article-featured-image {
    height: 250px;
  }

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

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  .header, .footer, .mobile-nav, .hero-buttons, .article-share {
    display: none;
  }

  .article-page {
    padding-top: 0;
  }
}
