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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 50%, #ffd4d4 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
}

.logo img {
  width: 40px;
  height: 40px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #e74c3c;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e74c3c;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #e74c3c;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero img {
  width: 400px;
  height: 400px;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
  font-family: 'Patrick Hand', cursive;
  font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

.hero p a {
  color: #e74c3c;
  text-decoration: none;
  margin: 0 0.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #e74c3c;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero p a:hover {
  background: #e74c3c;
  color: white;
}

/* Core Menus Section */
.core-menus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
}

.menu-card h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.menu-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.menu-card a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card a:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  margin-top: 2rem;
}

footer p {
  color: #666;
  margin-bottom: 0.5rem;
}

footer a {
  color: #e74c3c;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Content Section (for subpages) */
.content-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #e74c3c;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(231, 76, 60, 0.15);
}

.content-card h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.content-card p {
  color: #666;
  line-height: 1.8;
}

/* Token Page Specific Styles */
.token-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.token-page h1 {
  font-family: 'Patrick Hand', cursive;
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.token-page h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  color: #e74c3c;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.token-page > p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.purchase-section {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.1);
}

.purchase-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.purchase-section li {
  color: #666;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.purchase-section a {
  color: #e74c3c;
  text-decoration: none;
}

.purchase-section a:hover {
  text-decoration: underline;
}

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

.card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.15);
}

.card h3 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: #e74c3c;
  margin-bottom: 0.8rem;
}

.card p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
}

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

/* Framework Page Styles */
.framework-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.framework-page h1 {
  font-family: 'Patrick Hand', cursive;
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 1.5rem;
}

.framework-page h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  color: #e74c3c;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.framework-page > p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.framework-page a {
  color: #e74c3c;
  text-decoration: none;
}

.framework-page a:hover {
  text-decoration: underline;
}

.table-bullets {
  margin: 1.5rem 0;
}

.bullet-table td {
  color: #666;
  line-height: 1.8;
  padding: 0.5rem 0;
}

.bullet-table strong {
  color: #333;
}

.download-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white !important;
  text-decoration: none !important;
  border-radius: 25px;
  font-weight: 500;
  margin-top: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
  text-decoration: none !important;
}

.download-button.disabled {
  background: linear-gradient(135deg, #999, #777);
  cursor: not-allowed;
}

.download-button.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Gallery Page Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(231, 76, 60, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item p {
  padding: 1rem;
  color: #666;
  text-align: center;
  font-size: 0.95rem;
}

/* Tweet Gallery Styles */
.tweet-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tweet-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.tweet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
}

.tweet-card a {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

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

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.tweet-user {
  display: flex;
  flex-direction: column;
}

.tweet-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.tweet-handle {
  color: #666;
  font-size: 0.9rem;
}

.tweet-text {
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.tweet-link {
  display: inline-block;
  color: #e74c3c;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #e74c3c;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tweet-card:hover .tweet-link {
  background: #e74c3c;
  color: white;
}

/* Tweet Embed Gallery Styles */
.tweet-embed-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.tweet-embed {
  display: flex;
  justify-content: center;
}

.tweet-embed .twitter-tweet {
  margin: 0 !important;
}

/* Loading States */
.loading-indicator {
  text-align: center;
  padding: 2rem;
}

.loading-indicator p {
  color: #666;
  margin-top: 1rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ffe4e4;
  border-top-color: #e74c3c;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

.loading-spinner-small {
  width: 24px;
  height: 24px;
  border: 3px solid #ffe4e4;
  border-top-color: #e74c3c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tweet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #999;
  gap: 1rem;
  min-height: 200px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
}

.tweet-loading span {
  font-size: 0.9rem;
}

.loading-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  margin: 0 auto 1rem;
  max-width: 600px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.15);
  border-left: 4px solid #e74c3c;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.loading-notice p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.loading-notice.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: white;
  border-radius: 15px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(231, 76, 60, 0.25);
  border: 2px solid #e74c3c;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  max-width: 380px;
}

.toast-notification.active {
  transform: translateX(0);
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.toast-close:hover {
  color: #e74c3c;
}

.toast-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
  padding-right: 1rem;
}

.toast-text strong {
  display: block;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: #e74c3c;
  margin-bottom: 0.2rem;
}

.toast-text p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.toast-button {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.toast-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

@media (max-width: 480px) {
  .toast-notification {
    right: 10px;
    left: 10px;
    max-width: none;
    top: 70px;
  }
}

/* Image Credits Section */
.image-credits {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.1);
  text-align: center;
}

.image-credits h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.image-credits p {
  color: #666;
  margin-bottom: 1rem;
}

.credits-tweets {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.credits-tweets .tweet-embed {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

/* Social Media Cards Section */
.social-media-cards {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

/* Story Section with Tabs */
.story-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.story-section h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 2rem;
  color: #e74c3c;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Tabs Navigation */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.tab-link {
  padding: 0.8rem 1.5rem;
  background: white;
  border: 2px solid #e74c3c;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  color: #e74c3c;
  transition: all 0.3s ease;
}

.tab-link:hover {
  background: #fff5f5;
}

.tab-link.active {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-color: #e74c3c;
}

/* Tab Content */
.tab-content {
  display: none;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.1);
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h3 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
  color: #e74c3c;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.tab-content h3:first-child {
  margin-top: 0;
}

.tab-content h4 {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: #e74c3c;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.tab-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tab-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.tab-content li {
  color: #666;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.tab-content em {
  font-style: italic;
  color: #888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero img {
    width: 150px;
    height: 150px;
  }

  .hero p a {
    display: block;
    margin: 0.5rem auto;
    max-width: 200px;
  }
}
