/* ========================================
   Grandline - NFT Minting Platform
   ======================================== */

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

:root {
  /* Colors */
  --color-primary: #1cb94a;
  --color-primary-hover: #18a541;
  --color-bg-dark: #0a1929;
  --color-bg-darker: #061221;
  --color-bg-card: #0d2137;
  --color-text-primary: #ffffff;
  --color-text-secondary: #8b9bb4;
  --color-text-muted: #5a6d82;
  --color-border: #1e3a5f;
  --color-border-light: #2a4a6f;
  --color-yellow: #f0c844;
  --color-live-green: #22c55e;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Spacing */
  --header-height: 60px;
  --announcement-height: 36px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========================================
   Announcement Bar
   ======================================== */
.announcement-bar {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.announcement-bar span {
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.announcement-bar span:hover {
  opacity: 0.85;
}

/* ========================================
   Header
   ======================================== */
.header {
  background-color: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--announcement-height);
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* Mobile logo - hidden by default */
.logo-mobile {
  display: none;
}

.logo-desktop {
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
}

.dropdown-link:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-transform: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text-secondary);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 90vw;
  margin: 0 auto;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 25, 41, 0.95) 0%,
    rgba(10, 25, 41, 0.85) 35%,
    rgba(10, 25, 41, 0.4) 60%,
    rgba(10, 25, 41, 0) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 16px;
  line-height: 1.2;
  font-style: italic;
}

.hero-description {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 28px;
}

.mint-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.mint-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.status-live {
  color: var(--color-live-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-live-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.btn-mint {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #25d366 50%,
    var(--color-primary) 100%
  );
  background-size: 200% 200%;
  color: white;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(28, 185, 74, 0.4), 0 0 30px rgba(28, 185, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: btnPulse 2s ease-in-out infinite,
    gradientShift 3s ease-in-out infinite;
}

/* Pulsing glow animation */
@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(28, 185, 74, 0.4),
      0 0 30px rgba(28, 185, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(28, 185, 74, 0.6),
      0 0 50px rgba(28, 185, 74, 0.4), 0 0 80px rgba(28, 185, 74, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Gradient shift animation */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Shimmer/shine effect */
.btn-mint::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

.btn-mint:hover {
  background: linear-gradient(
    135deg,
    #25d366 0%,
    var(--color-primary) 50%,
    #25d366 100%
  );
  background-size: 200% 200%;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(28, 185, 74, 0.5), 0 0 60px rgba(28, 185, 74, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: none;
}

.btn-mint:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 15px rgba(28, 185, 74, 0.5), 0 0 30px rgba(28, 185, 74, 0.3);
}

/* ========================================
   Carousel Section
   ======================================== */
.carousel-section {
  background: linear-gradient(
    180deg,
    var(--color-bg-dark) 0%,
    var(--color-bg-darker) 100%
  );
  padding: 40px 24px 60px;
}

.carousel-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.carousel-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.carousel-item:hover .carousel-image {
  transform: scale(1.05);
}

/* ========================================
   Collections Table Section
   ======================================== */
.collections-section {
  background-color: var(--color-bg-darker);
  padding: 0 24px 60px;
}

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

.collections-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.collections-table thead {
  border-bottom: 1px solid var(--color-border);
}

.collections-table th {
  padding: 16px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    rgba(28, 185, 74, 0.08) 0%,
    transparent 100%
  );
  border-top: 2px solid var(--color-primary);
}

.collections-table th:first-child {
  border-radius: 4px 0 0 0;
}

.collections-table th:last-child {
  border-radius: 0 4px 0 0;
}

.collection-row {
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

.collection-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.collection-row td {
  padding: 20px 12px;
  vertical-align: middle;
  color: var(--color-text-secondary);
}

.col-collection {
  min-width: 300px;
}

.collection-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collection-number {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 20px;
}

.collection-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.collection-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.collection-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 14px;
}

.collection-address {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: monospace;
}

.col-stage {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.col-price {
  color: var(--color-text-primary);
  font-weight: 600;
}

.col-supply,
.col-available {
  font-size: 18px;
  color: var(--color-text-secondary);
}

.col-minted {
  color: var(--color-text-secondary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.status-badge.live {
  color: var(--color-live-green);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-badge {
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--color-text-primary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-description br {
    display: none;
  }

  .collections-table {
    font-size: 13px;
  }

  .col-collection {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .header-left {
    gap: 20px;
  }

  .main-nav {
    display: none;
  }

  /* Swap logos on mobile */
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    width: 48px;
    height: 48px;
  }

  .hero-container {
    padding: 40px 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  .mint-info {
    gap: 16px;
  }

  .btn-mint {
    width: 100%;
    padding: 14px 24px;
  }

  .carousel-container {
    gap: 20px;
  }

  .carousel-image {
    width: 90px;
    height: 90px;
  }

  .collections-section {
    overflow-x: auto;
    padding: 0 0 40px;
  }

  .collections-container {
    min-width: 900px;
    padding: 0 16px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .mint-stat {
    flex: 1 1 45%;
  }

  .carousel-track {
    gap: 16px;
  }

  .carousel-image {
    width: 80px;
    height: 80px;
  }
}
