/* Tailwind CSS Configuration */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* Custom CSS Variables */
:root {
  --primary-black: #000000;
  --primary-white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;
  --accent-gold: #b8860b;
  --accent-red: #8b0000;
  --font-family: 'Noto Sans SC', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--primary-white);
  color: var(--gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray-medium);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  color: var(--gray-dark);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-gold);
}

.nav-link.active {
  color: var(--primary-black);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: var(--primary-white);
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Featured Section */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.featured-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.featured-card:hover .featured-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem;
  color: var(--primary-white);
}

.featured-title {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Quick Navigation */
.quick-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
}

.quick-nav-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.quick-nav-item:hover {
  transform: translateY(-3px);
}

.quick-nav-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gray-dark);
  transition: all 0.3s ease;
}

.quick-nav-item:hover .quick-nav-icon {
  background: var(--accent-gold);
  color: var(--primary-white);
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.article-card {
  background: var(--primary-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--gray-medium);
  line-height: 1.6;
}

/* Item Grid */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.item-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.item-card:hover {
  transform: scale(1.03);
}

.item-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item-card:hover .item-overlay {
  opacity: 1;
}

.item-title {
  color: var(--primary-white);
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  padding: 0 1rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-tab {
  padding: 1rem 0;
  color: var(--gray-medium);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 400;
}

.filter-tab:hover {
  color: var(--primary-black);
}

.filter-tab.active {
  color: var(--primary-black);
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
}

/* Story Section */
.story-hero {
  height: 60vh;
  position: relative;
  overflow: hidden;
}

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

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.story-card {
  text-align: center;
}

.story-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.story-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.story-description {
  color: var(--gray-medium);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--gray-dark);
  color: var(--primary-white);
  text-align: center;
  padding: 2rem 0;
}

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

.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-nav {
    gap: 2rem;
  }
  
  .filter-tabs {
    gap: 1rem;
    overflow-x: auto;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .quick-nav {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
}

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

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

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

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

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

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-dark);
}