/* ========================================
   Clash Website - Static Version
   Pure HTML/CSS/JS - 宝塔直接可用
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #c9a95d;
  --primary-light: #f59e0b;
  --primary-dark: #d97706;
  --secondary: #1a1a2e;
  --dark: #0f0f1a;
  --light: #f5f5f5;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--gray-300);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: #000;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--gray-900);
  padding: 1rem;
  border-top: 1px solid var(--gray-800);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-900), var(--dark));
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite 2s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(201, 169, 93, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 93, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-logo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3rem;
  font-weight: 800;
  color: #000;
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray-400);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

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

.hero-platforms {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0.7;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.platform-badge svg {
  width: 20px;
  height: 20px;
  color: var(--primary-light);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #000;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--gray-600);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

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

.section-dark {
  background: var(--gray-900);
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ========================================
   Platform Cards
   ======================================== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

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

@media (max-width: 640px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.platform-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
}

.platform-card svg {
  width: 48px;
  height: 48px;
  color: var(--gray-400);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.platform-card:hover svg {
  color: var(--primary-light);
}

.platform-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.platform-card p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.platform-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-light);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

/* ========================================
   Quick Start Steps
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
}

.step-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  padding: 1.5rem;
}

.faq-item h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
  padding-top: 120px;
  padding-bottom: 3rem;
  text-align: center;
  background: var(--gray-900);
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--gray-400);
}

/* ========================================
   Downloads Page
   ======================================== */
.downloads-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (max-width: 900px) {
  .downloads-layout {
    grid-template-columns: 1fr;
  }
}

.platform-sidebar {
  background: var(--gray-800);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.platform-sidebar h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-400);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: left;
}

.platform-btn:hover {
  background: var(--gray-700);
  color: #fff;
}

.platform-btn.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-light);
}

.platform-btn svg {
  width: 24px;
  height: 24px;
}

.download-content {
  flex: 1;
}

.download-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-header svg {
  width: 32px;
  height: 32px;
  color: var(--gray-400);
}

.download-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.download-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.download-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.download-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.download-badge {
  background: var(--primary-light);
  color: #000;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

.download-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.download-card p {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.download-btn {
  margin-top: 1.25rem;
}

.installation-guide {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 16px;
  padding: 1.75rem;
}

.installation-guide h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.installation-guide ol {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.installation-guide li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.installation-guide li span:first-child {
  color: var(--primary-light);
  font-weight: 600;
}

/* ========================================
   Blog Page
   ======================================== */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--gray-800);
  color: var(--gray-400);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--gray-700);
  color: #fff;
}

.filter-btn.active {
  background: var(--primary-light);
  color: #000;
}

.featured-post {
  background: var(--gray-800);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--gray-700);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
}

.featured-post:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.featured-image {
  height: 100%;
  min-height: 280px;
}

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

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-category {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-light);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.post-date {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.featured-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.featured-post:hover .featured-content h2 {
  color: var(--primary-light);
}

.featured-content p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.post-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
}

.blog-card-image {
  height: 180px;
  overflow: hidden;
}

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

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

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

.blog-card-content .post-meta {
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: var(--transition);
}

.blog-card:hover h3 {
  color: var(--primary-light);
}

.blog-card p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.load-more {
  text-align: center;
  margin-top: 3rem;
}

/* ========================================
   Tutorials Page
   ======================================== */
.tutorials-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tutorial-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.tutorial-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.tutorial-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.tutorial-header:hover {
  background: rgba(55, 65, 81, 0.5);
}

.tutorial-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tutorial-info p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.tutorial-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

.badge-easy {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge-medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-light);
}

.badge-faq {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.badge-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gray-500);
  font-size: 0.75rem;
}

.tutorial-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  font-size: 0.875rem;
  white-space: nowrap;
}

.tutorial-toggle svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.tutorial-card.expanded .tutorial-toggle svg {
  transform: rotate(180deg);
}

.tutorial-content {
  display: none;
  border-top: 1px solid var(--gray-700);
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.5);
}

.tutorial-card.expanded .tutorial-content {
  display: block;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tutorial-step {
  display: flex;
  gap: 1rem;
}

.step-icon {
  width: 32px;
  height: 32px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
}

.step-content h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
}

.quick-link-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.quick-link-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
}

.quick-link-icon {
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.quick-link-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
}

.quick-link-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.quick-link-card p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.quick-link-card a {
  font-size: 0.8125rem;
  color: var(--primary-light);
}

.quick-link-card a:hover {
  text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--gray-900);
  border-top: 1px solid var(--gray-800);
  padding: 4rem 0 2rem;
}

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-light);
  color: #000;
}

.footer-column h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: var(--gray-400);
}

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

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

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .page-header h1 {
    font-size: 2.25rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 60px;
  }
  
  .hero-logo {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

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

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

/* Utility Classes */
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: var(--primary-light);
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: var(--gray-500);
}

.modal-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-light);
}

/* Post actions */
.post-actions {
  border-top: 1px solid var(--gray-700);
  padding-top: 0.75rem;
}

/* Admin button in nav */
.nav-links .btn {
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-400);
  cursor: pointer;
  font-family: inherit;
}

.nav-links .btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--gray-700);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Image preview */
.image-preview {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
  background: var(--gray-900);
}

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