/* ============================================
   Sleeptech-Microbiome News - Dreamscape Aurora
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2234;
  --surface: #1e293b;
  --aurora-blue: #38bdf8;
  --aurora-purple: #a855f7;
  --aurora-cyan: #22d3d1;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --gradient-aurora: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #22d3d1 100%);
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --transition-normal: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

a:hover { color: var(--aurora-cyan); }

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-aurora);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-item a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition-normal);
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

/* Main */
main {
  padding-top: 80px;
  min-height: 100vh;
}

/* Page Header */
.page-header {
  padding: 3rem 0;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.breadcrumb li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* News List */
.news-section {
  padding: 3rem 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
  transition: var(--transition-normal);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.news-item:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--aurora-cyan);
}

.news-item-content {
  flex: 1;
}

.news-item h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.news-item h3 a {
  color: var(--text-primary);
}

.news-item h3 a:hover {
  color: var(--accent);
}

.news-item time {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }

.footer-section a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-section a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 1.5rem 1.5rem;
    gap: 0;
    transition: var(--transition-normal);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu.active { right: 0; }
  .nav-item { width: 100%; }
  
  .nav-item a {
    padding: 1rem;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-toggle { display: flex; }
  
  .news-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}
