/* Futuristic Vlog CSS with Dark Mode - Mobile First */
:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-accent: #3b82f6;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;
  --border-color: #e2e8f0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-accent: #60a5fa;
  --accent-primary: #60a5fa;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #22d3ee;
  --border-color: #334155;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

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

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.95);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Orbitron', monospace;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-accent {
  font-family: 'Orbitron', monospace;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0.5rem;
  font-size: 0.8em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  transform: scale(1.1);
}

.theme-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(180deg);
}

/* Main Content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
}

.site-title {
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-main {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-subtitle {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.site-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  min-width: 100px;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-light);
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-elements {
  position: relative;
  width: 650px;
  height: 650px;
}

.element {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  animation: float 4s ease-in-out infinite;
}

.element-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 20%;
  animation: float1 12s ease-in-out infinite;
  animation-delay: 0s;
}

.element-2 {
  width: 120px;
  height: 120px;
  top: 50%;
  right: 20%;
  background: var(--gradient-secondary);
  animation: float2 10s ease-in-out infinite;
  animation-delay: 2s;
}

.element-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 50%;
  background: var(--gradient-accent);
  animation: float3 14s ease-in-out infinite;
  animation-delay: 4s;
}

@keyframes float1 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(150px, -100px) rotate(72deg); }
  40% { transform: translate(-80px, -150px) rotate(144deg); }
  60% { transform: translate(-120px, 80px) rotate(216deg); }
  80% { transform: translate(100px, 120px) rotate(288deg); }
  100% { transform: translate(0px, 0px) rotate(360deg); }
}

@keyframes float2 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(-100px, 120px) rotate(90deg); }
  50% { transform: translate(80px, -100px) rotate(180deg); }
  75% { transform: translate(120px, 60px) rotate(270deg); }
  100% { transform: translate(0px, 0px) rotate(360deg); }
}

@keyframes float3 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  30% { transform: translate(100px, -80px) rotate(108deg); }
  60% { transform: translate(-60px, 100px) rotate(216deg); }
  100% { transform: translate(0px, 0px) rotate(360deg); }
}

/* Research Timeline */
.research-timeline {
  margin: 4rem 0;
  position: relative;
  padding-left: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .research-timeline {
    padding-left: 0;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1rem;
}


.marker-line {
  width: 2px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  border-radius: 1px;
  opacity: 0.6;
}

.timeline-item:last-child .marker-line {
  display: none;
}

/* Search Section */
.search-section {
  margin: 3rem 0;
  text-align: center;
}

.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: 25px;
  padding: 0.5rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.search-bar button {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--shadow-light);
}

/* Research Card */
.research-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  box-shadow: 0 4px 20px var(--shadow-light);
  max-width: 100%;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.research-card:hover::before {
  transform: scaleX(1);
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-light);
  border-color: var(--accent-primary);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.post-number {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-category {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.category-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-indicator {
  background: var(--bg-tertiary);
  color: var(--text-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.tag:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.post-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.post-image-large {
  margin: 1.5rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-light);
}

.post-image-large img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-image-large:hover img {
  transform: scale(1.05);
}

.post-actions {
  margin-top: 1.5rem;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.read-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.read-more-btn:hover::before {
  left: 100%;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--shadow-light);
}

.read-more-btn svg {
  transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
  transform: translateX(3px);
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-title a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--text-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.tag:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}

.post-excerpt {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.read-more:hover::before {
  left: 100%;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--shadow-light);
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.no-posts-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.no-posts h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-content p {
  color: var(--text-secondary);
  margin: 0;
}

.footer-content a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-content a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Post Detail Page */
.post-detail {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.post-detail .post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-detail .post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-detail .post-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.post-detail .post-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 2rem 0;
  line-height: 1.2;
}

.post-image-featured {
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow-light);
}

.post-image-featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-image-featured:hover img {
  transform: scale(1.02);
}

.content-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  font-family: 'Orbitron', monospace;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.content-body h1 { font-size: 2rem; }
.content-body h2 { font-size: 1.75rem; }
.content-body h3 { font-size: 1.5rem; }
.content-body h4 { font-size: 1.25rem; }

.content-body p {
  margin-bottom: 1.5rem;
}

.content-body code {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
}

.content-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.content-body em {
  font-style: italic;
  color: var(--text-secondary);
}

.content-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.content-link:hover {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
}

.content-link::after {
  content: '↗';
  margin-left: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--shadow-light);
}

.back-btn svg {
  transition: transform 0.3s ease;
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

/* Large Desktop Responsiveness */
@media (min-width: 1200px) {
  .posts-container {
    max-width: 1200px;
    padding: 0 1.5rem;
  }
  
  .research-timeline {
    max-width: 1200px;
  }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
  .posts-container {
    max-width: 900px;
    padding: 1rem 1rem;
  }
  
  .research-timeline {
    max-width: 900px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 100%;
  }

  .posts-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .research-timeline {
    max-width: 100%;
  }

  /* Header Mobile */
  .site-header {
    padding: 1rem 0;
  }

  .site-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .nav-brand .brand-logo {
    font-size: 1.5rem;
  }

  .nav-actions {
    align-self: center;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    padding: 0.25rem;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-light);
  }

  .theme-icon {
    font-size: 1rem;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .site-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .title-main {
    display: block;
    margin-bottom: 0.5rem;
  }

  .title-subtitle {
    font-size: 1rem;
  }

  .site-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .stat {
    padding: 1rem;
    width: 100%;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Search Bar Mobile */
  .search-section {
    margin: 2rem 0;
  }

  .search-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .search-bar input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  .search-bar button {
    width: 100%;
    padding: 1rem;
  }

  /* Timeline Mobile */
  .research-timeline {
    margin-top: 2rem;
    padding-left: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-item {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
    padding-top: 0;
  }

  .marker-line {
    display: none;
  }

  .research-card {
    width: 100%;
    margin-left: 0;
  }

  .card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .post-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .post-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .post-excerpt {
    font-size: 0.9rem;
  }

  .post-actions {
    margin-top: 1rem;
  }

  .read-more-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 2rem 0;
    text-align: center;
  }

  .footer-content p {
    font-size: 0.9rem;
  }

  /* Admin Panel Mobile */
  .admin-interface {
    padding: 1rem;
  }

  .admin-header {
    padding: 1rem 0;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .admin-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-btn {
    width: 100%;
    padding: 1rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .admin-form {
    padding: 1rem;
  }

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

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  .posts-list {
    margin-top: 1rem;
  }

  .post-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .post-item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .post-item-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-actions {
    flex-direction: row;
    justify-content: center;
  }

  .edit-btn,
  .delete-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Login Mobile */
  .login-container {
    padding: 1rem;
  }

  .login-form {
    padding: 2rem 1rem;
  }

  .login-form h1 {
    font-size: 2rem;
  }

  .form-group input {
    padding: 1rem;
    font-size: 1rem;
  }

  .login-info {
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .floating-elements {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
    margin: 0 auto;
    max-width: 100%;
  }

  .posts-container {
    max-width: 100%;
    padding: 0 0.25rem;
  }

  .site-title {
    font-size: 2rem;
  }

  .hero-section {
    padding: 1.5rem 0;
  }

  .research-card {
    padding: 1rem;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .admin-interface {
    padding: 0.5rem;
  }

  .admin-form {
    padding: 0.5rem;
  }

  .login-form {
    padding: 1.5rem 0.5rem;
  }

  .floating-elements {
    width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .theme-toggle {
    width: 28px;
    height: 28px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .theme-icon {
    font-size: 0.9rem;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .site-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-elements {
    width: 500px;
    height: 500px;
    margin: 0 auto;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}