/*==========================================================================
  0) VARIABLES & BASE SETTINGS
==========================================================================*/
:root {
  /* New Color Palette */
  --primary-color: #FF6700;      /* Neon orange accent */
  --secondary-color: #2c2c2c;    /* Dark grey background for components */
  --accent-color: #FF6700;       /* Accent color, same as primary */
  --background-color: #121212;   /* Dark background */
  --text-color: #e0e0e0;         /* Light text for contrast */
  --light-text-color: #ffffff;   /* Pure white */
  --text-muted: #bbb;


  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 40px;

  /* Font Sizes */
  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 22px;
  --font-size-xxl: 30px;

  /* Font Family */
  --font-family: 'Orbitron', sans-serif;

  /* Transitions */
  --transition-default: 0.3s ease;
  --transition-fast: 0.15s ease;
}

/*==========================================================================
  1) GLOBAL RESET & BASE STYLES
==========================================================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {

  font-family: 'Orbitron', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}



/*==========================================================================
  2) MAIN CONTAINER
==========================================================================*/
.donation-container {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;

}

/*==========================================================================
  3) LAYOUT VISIBILITY
==========================================================================*/
.desktop-layout {
  display: none;
}
.mobile-layout {
  display: block;
}
@media (min-width: 769px) {
  .desktop-layout {
    display: block;
  }
  .mobile-layout {
    display: none;
  }
}
/* Tablet: force mobile-layout if needed */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .mobile-layout {
    display: block !important;
  }
  .desktop-layout {
    display: none !important;
  }
}

/*==========================================================================
  4) SUPPORT SECTION (Desktop)
==========================================================================*/
.support-section {
  text-align: center;
  margin: var(--spacing-md) auto;
  padding: var(--spacing-md);
  width: 100%;
}

h1 {
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: transparent;
    text-shadow: 0 0 4px var(--shadow-color), 0 0 8px var(--shadow-color), 0 0 12px var(--shadow-color);
    mix-blend-mode: screen;
    padding-bottom: var(--spacing-lg);
}

/*==========================================================================
  5) SEPARATOR
==========================================================================*/
.separator-line {
  border: none;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  margin-bottom: var(--spacing-lg);
}

/*==========================================================================
  6) SLIDER & SLIDES
==========================================================================*/
.slider-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider-container::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  padding: var(--spacing-md);
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100vh;
}

/*==========================================================================
  7) HEADINGS & TEXT
==========================================================================*/
h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.donation-text {
    font-size: 1.125rem;
    line-height: 1.75;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    opacity: 0.9;
    padding-bottom:var(--spacing-md);
}
.donation-text strong {
  color: var(--primary-color);
  font-weight: 600;
}



/*==========================================================================
  9) COPY WALLET BUTTON - Redesigned
==========================================================================*/
.copy-wallet-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #292929;
  color: var(--light-text-color);
  border:none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  width: 220px;
  height: 48px;

}

.copy-wallet-btn:hover {
  background: #cc5800; /* Vibrant neon gradient */
  
  box-shadow: 0 0 15px var(--primary-color);
  transform: scale(1.05);
}

.copy-wallet-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button-text-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.button-text i {
  margin-right: 8px;
}

.copy-wallet-btn.fade-out .button-text {
  opacity: 0;
}



/*==========================================================================
  10) WALLET SECTION
==========================================================================*/
.wallet-section p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light-text-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.wallet-section p strong {
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* Chart Container */
.chart-container {
  width: 90%;
  max-width: 1000px;
  margin: var(--spacing-md) auto;
  overflow: hidden;
  max-height: 380px;
}

#netWorthChart,
#netWorthChartMobile {
  width: 100% !important;
  height: 400px !important;
}

/*==========================================================================
  11) CHART CONTROLS - Improved
==========================================================================*/
.chart-controls {
  margin: var(--spacing-sm) 0 var(--spacing-xs);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  text-align: center;
}

.chart-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
  padding: 6px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

.chart-controls button:hover {
  background: rgba(255, 103, 0, 0.15);
}

.chart-controls button.active {
  background: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 0 12px var(--primary-color);
  transform: scale(1.05);
}


/*==========================================================================
  12) DONATIONS SECTION & TABLE
==========================================================================*/
.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  padding: 0 10px;
  max-height: 60vh;
  width: 100%;
}

.donation-table {
  margin: 0 auto;
  width: auto;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.donation-table tbody {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.donation-table th {
  background: #292929;
  color: var(--light-text-color);
  font-weight: 600;
  position: sticky;
  top: 0;
  padding: 0.5rem 1.2rem;
  text-align: center;
  border-bottom: 3px solid rgba(255, 103, 0, 0.5);
}

.donation-table td {
  padding: 0.5rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 103, 0, 0.3);
}

.donation-table tr:last-child td {
  border-bottom: none;
}

.donation-table tr:nth-child(even) {
  background-color: #141414;
}

.donation-table tr:hover {
  background-color: #2c2c2c;
  transition: background-color 0.2s ease;
}

/*==========================================================================
  13) DOT NAVIGATION
==========================================================================*/
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--spacing-sm);
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #555;
  border-radius: 50%;
  transition: background-color 0.15s ease; /* Faster transition */
  cursor: pointer;
}

.dot.active {
  background-color: var(--primary-color);
}

/*==========================================================================
  14) MOBILE STYLES (SWIPEABLE SECTIONS)
==========================================================================*/
@media (max-width: 768px) {
  html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
  }
  h1 {
  font-size: 1.6rem;
  }
  
  /* Full-screen horizontal slider */
  .donation-container {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .donation-container::-webkit-scrollbar {
    display: none;
  }
  
  .slider-wrapper {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .mobile-layout .slider-container {
    width: 100%;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-layout .slider-container::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-layout .slide {
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    max-height: 100vh;
  }
  
  /* Mobile layout for support, wallet, and donations */
  .mobile-layout .support-section,
  .mobile-layout .wallet-section,
  .mobile-layout .donations-section {
    width: 100%;
    max-width: 100vw;
    margin: var(--spacing-md) auto ;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: hidden;
    max-height: calc(100vh - var(--spacing-lg) - var(--spacing-md));
    flex-shrink: 0;
    padding: var(--spacing-md) ;
  }
  
  .chart-container {
    width: 100% !important;
    height: 300px;
    margin: var(--spacing-md) 0;
    padding: 0 !important;
    overflow: hidden;
    flex-shrink: 0;
  }
  
  #netWorthChartMobile {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
  }
  
  .chart-controls {
    margin: var(--spacing-md) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    width: 100%;
  }
  
  .chart-controls button {
    padding: 8px 16px;
    font-size: 0.7rem;
    width: 40px;
    height: 30px;
    margin: 0 var(--spacing-sm);
  }
  
  .table-wrapper {
    width: 100%;
    max-width: 95vw;
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    margin: var(--spacing-xs) auto;
    padding: 0;
    flex-shrink: 0;
  }
  
  .donation-table {
    width: 100%;
    font-size: 0.8rem;
    margin: 0;
  }
  
  .donation-table th,
  .donation-table td {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  
  /* Hide timestamp column on mobile */
  .donation-table th:nth-child(4),
  .donation-table td:nth-child(4) {
    display: none;
  }
  
  /* Mobile Dot Navigation */
  .dots.mobile-dots {
    position: fixed;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: var(--spacing-sm);
    border-radius: 20px;
  }
}

