/* NFT Marketplace Design System - Applied to OW Token */
/* Based on existing color scheme and typography */

:root {
  /* Colors - Matching NFT Marketplace */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  
  /* Chart colors */
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  
  /* Sidebar colors */
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
  
  /* Typography - Geist Sans */
  --font-sans: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', Monaco, 'Cascadia Code', 'Segoe UI Mono', monospace;
  
  /* Spacing and sizing */
  --radius: 0.625rem;
  --container-max-width: 1200px;
  --header-height: 80px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), oklch(0.488 0.243 264.376));
  --gradient-accent: linear-gradient(135deg, var(--chart-1), var(--chart-2));
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: var(--header-height);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 2rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.logo .tagline {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 400;
  display: block;
  margin-top: -0.25rem;
}

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

.nav-link {
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Mobile Navigation */
.mobile-nav {
  display: none; /* Hidden by default */
  position: sticky;
  top: var(--header-height);
  background: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

.mobile-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.2s ease;
  position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  background: oklch(0.488 0.243 264.376 / 0.1);
}

.mobile-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.wallet-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wallet-info span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
}

/* Main Content */
main {
  margin-top: var(--header-height);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--secondary) 100%
  );
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%,
    oklch(0.488 0.243 264.376 / 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px oklch(0 0 0 / 0.15);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.token-display {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-icon {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--card);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.1);
  position: relative;
  z-index: 2;
}

.token-animation {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 2px solid oklch(0.488 0.243 264.376 / 0.3);
  border-radius: 50%;
  border-top-color: oklch(0.488 0.243 264.376);
  animation: rotate 8s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav {
    display: none;
  }
  
  /* Show mobile navigation */
  .mobile-nav {
    display: block;
  }
  
  /* Hero Section */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .token-display {
    width: 250px;
    height: 250px;
  }
  
  .token-icon {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }
  
  .token-animation {
    width: 180px;
    height: 180px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

/* Maintenance Overlay Styles */
.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--secondary) 100%
  );
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.maintenance-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    oklch(0.488 0.243 264.376 / 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.maintenance-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 64px oklch(0 0 0 / 0.1);
  position: relative;
  z-index: 2;
}

.maintenance-icon {
  margin-bottom: 2rem;
}

.gear-icon {
  font-size: 4rem;
  animation: rotate-slow 4s linear infinite;
  display: inline-block;
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.maintenance-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.maintenance-message {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.maintenance-info {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.95rem;
}

.info-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.maintenance-active {
  color: oklch(0.769 0.188 70.08) !important;
  font-weight: 600;
}

.countdown-section {
  margin-bottom: 2.5rem;
}

.countdown-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.countdown-item {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  min-width: 80px;
}

.countdown-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.maintenance-actions {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.refresh-btn, .force-exit-btn {
  background: var(--card);
  color: var(--foreground);
  border: 2px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.force-exit-btn {
  background: oklch(0.577 0.245 27.325);
  color: white;
  border-color: oklch(0.577 0.245 27.325);
}

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

.force-exit-btn:hover {
  background: oklch(0.704 0.191 22.216);
  border-color: oklch(0.704 0.191 22.216);
  transform: translateY(-1px);
}

.refresh-btn:active, .force-exit-btn:active {
  transform: translateY(0);
}

.refresh-icon, .exit-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.refresh-btn:hover .refresh-icon {
  transform: rotate(180deg);
}

.force-exit-btn:hover .exit-icon {
  transform: scale(1.1);
}

.maintenance-contact {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.maintenance-contact p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-note {
  font-weight: 500;
  color: var(--chart-1) !important;
}

/* Responsive Maintenance Styles */
@media (max-width: 768px) {
  .maintenance-overlay {
    padding: 1rem;
  }
  
  .maintenance-container {
    padding: 2rem;
  }
  
  .maintenance-title {
    font-size: 2rem;
  }
  
  .countdown-timer {
    gap: 1rem;
  }
  
  .countdown-item {
    padding: 0.75rem 1rem;
    min-width: 60px;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  .gear-icon {
    font-size: 3rem;
  }
}

/* Admin Maintenance Notification Styles */
.admin-maintenance-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 350px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px oklch(0 0 0 / 0.15);
  z-index: 9998;
  display: none;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.admin-notification-container {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-notification-header {
  background: var(--secondary);
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.admin-notification-icon {
  flex-shrink: 0;
}

.gear-icon-small {
  font-size: 1.5rem;
  animation: rotate-slow 4s linear infinite;
  display: block;
}

.admin-notification-title {
  flex: 1;
}

.admin-notification-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.25rem 0;
}

.admin-notification-title p {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.3;
}

.admin-notification-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) / 2);
  transition: all 0.2s ease;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-notification-close:hover {
  background: var(--accent);
  color: var(--foreground);
}

.admin-notification-content {
  padding: 1rem;
}

.admin-maintenance-info {
  margin-bottom: 1rem;
}

.admin-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.admin-info-row:last-child {
  margin-bottom: 0;
}

.admin-info-label {
  font-weight: 500;
  color: var(--foreground);
}

.admin-info-value {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}

.admin-countdown-section {
  margin-bottom: 1rem;
}

.admin-countdown-timer {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.admin-countdown-item {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) / 2);
  text-align: center;
  min-width: 45px;
}

.admin-countdown-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.1rem;
}

.admin-countdown-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.admin-notification-actions {
  text-align: center;
}

.admin-refresh-btn {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) / 2);
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.admin-refresh-btn:active {
  transform: translateY(0);
}

.admin-refresh-btn .refresh-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.admin-refresh-btn:hover .refresh-icon {
  transform: rotate(180deg);
}

/* Responsive Admin Notification */
@media (max-width: 768px) {
  .admin-maintenance-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
  
  .admin-notification-header {
    padding: 0.75rem;
  }
  
  .admin-notification-content {
    padding: 0.75rem;
  }
  
  .admin-countdown-timer {
    gap: 0.5rem;
  }
  
  .admin-countdown-item {
    padding: 0.4rem 0.6rem;
    min-width: 40px;
  }
  
  .admin-countdown-number {
    font-size: 1rem;
  }
  
  .gear-icon-small {
    font-size: 1.2rem;
  }
}