/* Wilmington Foodie - Coastal Food Blog Design */

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

:root {
  /* Coastal Brand Colors */
  --ocean-blue: #1e3a8a;
  --coastal-blue: #3b82f6;
  --seafoam: #06b6d4;
  --sand-beige: #f0f9ff;
  --coral-accent: #f97316;
  --seashell: #fefefe;
  --deep-navy: #1e293b;
  --wave-teal: #0891b2;
  
  /* Typography */
  --font-display: 'Crimson Text', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.1);
  --shadow-md: 0 4px 16px rgba(30, 58, 138, 0.15);
  --shadow-lg: 0 8px 32px rgba(30, 58, 138, 0.2);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--deep-navy);
  background: linear-gradient(135deg, var(--seashell) 0%, var(--sand-beige) 100%);
  min-height: 100vh;
}

/* Navigation */
.navbar {
  background: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ocean-blue);
  text-decoration: none;
}

.brand-icon {
  font-size: 2rem;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--deep-navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.admin-link {
  background: var(--coastal-blue);
  color: white !important;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.admin-link:hover {
  background: var(--ocean-blue);
  transform: translateY(-1px);
}

.admin-link::after {
  display: none;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  margin: var(--space-lg) 0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,10 Q25,0 50,10 T100,10 V20 H0 Z" fill="rgba(6,182,212,0.1)"/></svg>') repeat-x;
  background-size: 200px 20px;
  animation: wave 10s linear infinite;
}

@keyframes wave {
  0% { background-position-x: 0; }
  100% { background-position-x: 200px; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ocean-blue);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 4px rgba(30, 58, 138, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--deep-navy);
  margin-bottom: var(--space-xl);
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Actions Container */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.featured-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background: var(--coastal-blue);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-width: 200px;
}

.featured-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--ocean-blue);
}

.badge-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
}

.badge-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Featured Stories */
.featured-stories {
  margin: var(--space-2xl) 0;
}

.featured-stories h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ocean-blue);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

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

.post-card-header {
  background: linear-gradient(135deg, var(--coastal-blue), var(--seafoam));
  color: white;
  padding: var(--space-md);
  text-align: center;
  font-size: 2rem;
}

.post-card-content {
  padding: var(--space-md);
}

.post-category {
  display: inline-block;
  background: rgba(30, 58, 138, 0.1);
  color: var(--ocean-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.post-title {
  margin-bottom: var(--space-sm);
}

.post-title a {
  color: var(--deep-navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--coastal-blue);
}

.post-excerpt {
  color: var(--deep-navy);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--deep-navy);
  opacity: 0.7;
}

.read-time {
  font-weight: 500;
}

.post-date {
  font-style: italic;
}

/* View All Posts Button */
.view-all-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--coastal-blue), var(--seafoam));
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--ocean-blue), var(--coastal-blue));
}

/* About Blog Section */
.about-blog {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  padding: var(--space-2xl) var(--space-sm);
  border-radius: 16px;
  margin: var(--space-2xl) 0;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--deep-navy);
  margin-bottom: var(--space-md);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.highlight-card {
  background: white;
  padding: var(--space-md);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.highlight-card h3 {
  font-family: var(--font-display);
  color: var(--ocean-blue);
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.highlight-card p {
  color: var(--deep-navy);
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Recent Posts Styling */
.recent-posts {
  padding: var(--space-2xl) var(--space-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.recent-posts h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ocean-blue);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.post-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-header {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.post-category {
  background: var(--coral-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.post-title {
  margin: var(--space-sm) 0;
}

.post-title a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ocean-blue);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--deep-navy);
}

.post-excerpt {
  color: var(--deep-navy);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ocean-blue);
}

.read-time {
  font-weight: 500;
}

.post-date {
  opacity: 0.7;
}

/* Article Styling */
main {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

article {
  max-width: 100%;
  margin: 0;
  padding: 10px;
  text-align: center;
}

article h1 {
  color: var(--ocean-blue);
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}

article p {
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: center;
}

article img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 1rem auto;
  display: block;
  box-shadow: var(--shadow-sm);
}

article figure {
  margin: 1.5rem 0;
  text-align: center;
}

article figcaption {
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: var(--ocean-blue);
  font-style: italic;
  text-align: center;
}

/* Post Page Navigation */
.post-nav {
  background: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.post-nav .brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ocean-blue);
  text-decoration: none;
}

.post-nav .brand-icon {
  font-size: 2rem;
}

/* Footer */
.footer {
  background: var(--deep-navy);
  color: white;
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-copy {
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    gap: var(--space-md);
  }
  
  .featured-badge {
    max-width: 320px;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .about-highlights {
    flex-direction: row;
    overflow-x: auto;
    gap: var(--space-sm);
  }
  
  .highlight-card {
    min-width: 200px;
    flex-shrink: 0;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .nav-container {
    padding: var(--space-sm);
  }
  
  .brand {
    font-size: 1.25rem;
  }
  
  .brand-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-actions {
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }
  
  .featured-badge {
    min-width: auto;
    width: 100%;
    max-width: 280px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .badge-title {
    font-size: 1rem;
  }
  
  .view-all-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.95rem;
  }
  
  .post-card-content {
    padding: var(--space-sm);
  }
  
  .about-highlights {
    flex-direction: column;
  }
}

/* Post Page Navigation */
.post-nav {
  background: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.post-nav .brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ocean-blue);
  text-decoration: none;
}

.post-nav .brand-icon {
  font-size: 2rem;
}

/* View All Posts Button */
.view-all-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ocean-blue), var(--coastal-blue));
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--deep-navy), var(--ocean-blue));
}

@media (min-width: 1600px) {
  main {
    max-width: 1800px;
    padding: 0 0.5rem;
  }
}