/* recycle.wiki - Cottagecore Encyclopedia */
/* Colors: #4a90d9, #1a1a2e, #6c757d, #e8b84b, #f5f0e8 */
/* Fonts: Lora, Inter */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "Inter", sans-serif; color: #1a1a2e; background-color: #f5f0e8; overflow-x: hidden; position: relative; }

/* Grain Overlay */
#grain-svg { position: absolute; width: 0; height: 0; }
#grain-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.65%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}

/* Navigation */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  transition: all 0.3s ease;
}
#main-nav.scrolled { background: rgba(245, 240, 232, 0.97); box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0.75rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { flex-shrink: 0; }
.logo-text { font-family: "Lora", serif; font-size: 1.35rem; font-weight: 700; color: #1a1a2e; }
.logo-dot { color: #e8b84b; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: #6c757d; font-size: 0.95rem; font-weight: 500; transition: color 0.3s ease; position: relative; }
.nav-links a::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #4a90d9; transition: width 0.3s ease; }
.nav-links a:hover { color: #4a90d9; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #1a1a2e; transition: all 0.3s ease; border-radius: 2px; }

/* Parallax Sections */
.parallax-section { position: relative; overflow: hidden; }
.parallax-bg { position: absolute; top: -20%; left: 0; right: 0; bottom: -20%; z-index: 0; will-change: transform; }

/* Hero */
.hero-bg { background: linear-gradient(165deg, #1a1a2e 0%, #2a2a4e 30%, #3a4a6e 60%, #4a90d9 100%); }
#hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 2rem 3rem; color: #f5f0e8; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-floral { position: absolute; top: -60px; pointer-events: none; opacity: 0.7; }
.hero-floral-left { left: -140px; }
.hero-floral-right { right: -140px; }
.hero-title { font-family: "Lora", serif; font-size: 3.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero-highlight { color: #e8b84b; position: relative; }
.hero-highlight::after { content: ""; position: absolute; bottom: 4px; left: 0; right: 0; height: 3px; background: rgba(232, 184, 75, 0.4); border-radius: 2px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(245, 240, 232, 0.8); line-height: 1.7; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-search { display: flex; gap: 0; max-width: 520px; margin: 0 auto 2.5rem; background: rgba(245, 240, 232, 0.12); border-radius: 50px; border: 1px solid rgba(245, 240, 232, 0.2); overflow: hidden; transition: border-color 0.3s ease; }
.hero-search:hover, .hero-search:focus-within { border-color: rgba(232, 184, 75, 0.5); }
#hero-search-input { flex: 1; padding: 0.9rem 1.5rem; background: none; border: none; color: #f5f0e8; font-family: "Inter", sans-serif; font-size: 0.95rem; outline: none; }
#hero-search-input::placeholder { color: rgba(245, 240, 232, 0.45); }
.btn-primary { padding: 0.9rem 1.8rem; background: #e8b84b; color: #1a1a2e; border: none; font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; border-radius: 0 50px 50px 0; }
.btn-primary:hover { background: #d4a63d; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-family: "Lora", serif; font-size: 2rem; font-weight: 700; color: #e8b84b; }
.stat-label { font-size: 0.85rem; color: rgba(245, 240, 232, 0.6); margin-top: 0.25rem; }
.scroll-hint { position: relative; z-index: 1; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(245, 240, 232, 0.4); font-size: 0.8rem; animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Section Dividers */
.section-divider { padding: 1rem 0; text-align: center; overflow: hidden; }
.section-divider svg { width: 100%; max-width: 600px; height: auto; }

/* Section Common */
.section-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.section-title { font-family: "Lora", serif; font-size: 2.5rem; font-weight: 700; color: #1a1a2e; text-align: center; margin-bottom: 1rem; }
.section-intro { text-align: center; color: #6c757d; font-size: 1.1rem; line-height: 1.7; max-width: 600px; margin: 0 auto 3rem; }

/* Categories */
.categories-bg { background: linear-gradient(180deg, #f5f0e8 0%, #ede6d8 100%); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.category-card { background: white; border-radius: 16px; padding: 2rem 1.5rem; text-align: center; text-decoration: none; color: #1a1a2e; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); border: 1px solid rgba(26, 26, 46, 0.06); }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26, 26, 46, 0.1); }
.category-card:hover .category-geo-border { opacity: 1; }
.category-icon { margin-bottom: 1rem; }
.category-card h3 { font-family: "Lora", serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.category-count { font-size: 0.8rem; color: #6c757d; }
.category-geo-border { position: absolute; inset: 0; border: 2px solid #4a90d9; border-radius: 16px; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; clip-path: polygon(0 0, 30% 0, 35% 3%, 65% 3%, 70% 0, 100% 0, 100% 100%, 70% 100%, 65% 97%, 35% 97%, 30% 100%, 0 100%); }

/* How It Works */
.how-bg { background: linear-gradient(180deg, #ede6d8 0%, #f5f0e8 50%, #ede6d8 100%); }
.process-timeline { position: relative; max-width: 700px; margin: 0 auto; }
.process-timeline::before { content: ""; position: absolute; top: 0; left: 30px; bottom: 0; width: 2px; background: linear-gradient(180deg, #4a90d9, #e8b84b); border-radius: 1px; }
.process-step { display: flex; gap: 1.5rem; margin-bottom: 2rem; position: relative; }
.step-marker { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: white; border: 3px solid #4a90d9; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: all 0.3s ease; }
.process-step:hover .step-marker { background: #4a90d9; border-color: #4a90d9; }
.process-step:hover .step-num { color: white; }
.step-num { font-family: "Lora", serif; font-size: 1.4rem; font-weight: 700; color: #4a90d9; transition: color 0.3s ease; }
.step-content { flex: 1; background: white; border-radius: 16px; padding: 1.5rem 2rem; border: 1px solid rgba(26, 26, 46, 0.06); transition: box-shadow 0.3s ease; }
.process-step:hover .step-content { box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08); }
.step-content h3 { font-family: "Lora", serif; font-size: 1.3rem; font-weight: 600; color: #1a1a2e; margin-bottom: 0.5rem; }
.step-preview { color: #6c757d; line-height: 1.6; font-size: 0.95rem; }
.step-details { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, margin 0.3s ease; opacity: 0; }
.step-details.expanded { max-height: 500px; opacity: 1; margin-top: 1rem; }
.step-details p { color: #1a1a2e; line-height: 1.7; font-size: 0.95rem; margin-bottom: 0.75rem; }
.read-more-btn { background: none; border: none; color: #4a90d9; font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; padding: 0.5rem 0; transition: color 0.3s ease; margin-top: 0.5rem; }
.read-more-btn:hover { color: #e8b84b; }

/* Articles Accordion */
.articles-bg { background: linear-gradient(180deg, #ede6d8 0%, #f5f0e8 100%); }
.articles-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item { background: white; border-radius: 12px; border: 1px solid rgba(26, 26, 46, 0.06); overflow: hidden; transition: box-shadow 0.3s ease; }
.accordion-item:hover { box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06); }
.accordion-header { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer; text-align: left; font-family: "Inter", sans-serif; transition: background 0.3s ease; }
.accordion-header:hover { background: rgba(74, 144, 217, 0.04); }
.accordion-icon-wrapper { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(74, 144, 217, 0.08); border-radius: 10px; }
.accordion-title { flex: 1; font-family: "Lora", serif; font-size: 1.05rem; font-weight: 600; color: #1a1a2e; }
.accordion-arrow { flex-shrink: 0; color: #6c757d; transition: transform 0.4s ease; display: flex; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.accordion-body p { padding: 0 1.5rem; color: #1a1a2e; line-height: 1.7; font-size: 0.95rem; margin-bottom: 0.75rem; }
.accordion-body p:first-child { padding-top: 0.25rem; }
.accordion-body strong { color: #4a90d9; }
.article-meta { display: block; padding: 0.5rem 1.5rem 1.25rem; font-size: 0.8rem; color: #6c757d; }

/* Community */
.community-bg { background: linear-gradient(180deg, #f5f0e8 0%, #1a1a2e 100%); }
#community { padding-bottom: 0; }
#community .section-title, #community .section-intro { color: #1a1a2e; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.community-card { background: white; border-radius: 16px; padding: 2rem; border: 1px solid rgba(26, 26, 46, 0.06); transition: all 0.4s ease; }
.community-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26, 26, 46, 0.1); }
.community-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.community-card-header h3 { font-family: "Lora", serif; font-size: 1.2rem; font-weight: 600; color: #1a1a2e; }
.community-card p { color: #6c757d; line-height: 1.7; font-size: 0.95rem; margin-bottom: 1.25rem; }
.community-link { color: #4a90d9; font-weight: 600; text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease; }
.community-link::after { content: " \2192"; }
.community-link:hover { color: #e8b84b; }
.newsletter-form { display: flex; gap: 0.5rem; }
#newsletter-email { flex: 1; padding: 0.7rem 1rem; border: 1px solid rgba(26, 26, 46, 0.15); border-radius: 8px; font-family: "Inter", sans-serif; font-size: 0.9rem; color: #1a1a2e; background: #f5f0e8; outline: none; transition: border-color 0.3s ease; }
#newsletter-email:focus { border-color: #4a90d9; }
.btn-small { padding: 0.7rem 1.2rem; border-radius: 8px; font-size: 0.85rem; }

/* Footer */
#site-footer { background: #1a1a2e; color: rgba(245, 240, 232, 0.7); position: relative; overflow: hidden; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 2rem; }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 280px; }
.footer-logo { font-family: "Lora", serif; font-size: 1.5rem; font-weight: 700; color: #f5f0e8; display: block; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; color: rgba(245, 240, 232, 0.5); }
.footer-links-group { display: flex; gap: 3rem; }
.footer-col h4 { font-family: "Lora", serif; font-size: 1rem; font-weight: 600; color: #f5f0e8; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(245, 240, 232, 0.5); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-col a:hover { color: #e8b84b; }
.footer-divider-line { height: 1px; background: rgba(245, 240, 232, 0.1); margin-bottom: 1.5rem; }
.footer-bottom p { text-align: center; font-size: 0.85rem; color: rgba(245, 240, 232, 0.35); }
.footer-botanical { position: absolute; bottom: 0; right: 2rem; pointer-events: none; }

/* Responsive */
@media (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .hero-floral { display: none; }
  .footer-top { flex-direction: column; }
  .footer-links-group { gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(245, 240, 232, 0.98); flex-direction: column; padding: 1rem 2rem; gap: 0.5rem; border-bottom: 1px solid rgba(26, 26, 46, 0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
  .section-title { font-size: 2rem; }
  .process-timeline::before { left: 22px; }
  .step-marker { width: 44px; height: 44px; }
  .step-content { padding: 1.25rem; }
  .hero-search { flex-direction: column; border-radius: 16px; }
  .btn-primary { border-radius: 0 0 16px 16px; }
  .footer-links-group { flex-direction: column; gap: 1.5rem; }
  .newsletter-form { flex-direction: column; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }