/* assets/style.css */

/* ==============================
   Font Import
============================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ==============================
   Root Variables
============================== */
:root {
  --dark-bg: #060913;
  --card-bg: #10141f;
  --primary-blue: #00bcd4;
  --accent-red: #ff416c;
  --text-light: #ffffff;
  --text-muted: #b0b0c0;
  --border-color: #2f3345;
  --gold-gradient: linear-gradient(145deg, #ffd700, #b8860b, #ffd700);
}

/* ==============================
   Base Reset
============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================
   Body & Background
============================== */
body {
  background: radial-gradient(circle at center, #0d111a, #05060a 85%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  padding-top: 80px;
}

/* ==== Tiny Spark Motion ==== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.6px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.12;
  animation: sparkFloat 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes sparkFloat {
  from { background-position: 0 0; }
  to { background-position: 120px 120px; }
}

/* ==============================
   Text & Link
============================== */
h1, h2, h3, h4, h5, h6, p, a, span, div {
  color: var(--text-light);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-red);
}

/* ==============================
   Buttons (Golden 3D look)
============================== */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #1a1a1a;
  background: var(--gold-gradient);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3),
              inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5),
              inset 0 3px 6px rgba(255, 255, 255, 0.3);
}

/* ==============================
   Header (Fixed + Lighting Depth)
============================== */
.main-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 12, 25, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 15px 5%;
  z-index: 1000;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-buttons button {
  margin-left: 10px;
}

/* ==============================
   Card & Form Container
============================== */
.form-container,
.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
  z-index: 3;
  backdrop-filter: blur(4px);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: #111420;
  color: var(--text-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.4);
  outline: none;
}

/* ==============================
   Footer
============================== */
.site-footer {
  margin-top: auto;
  background: rgba(12, 14, 25, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #eee;
  padding: 20px 5%;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-links a {
  color: #bbb;
  margin: 0 10px;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #ffd700;
}

/* ==============================
   Layout & Container Adjust
============================== */
header, .main-header, .navbar {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
main, section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.container, .hero, .hero-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==============================
   Responsive Fix
============================== */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    text-align: center;
  }
  .nav-buttons {
    margin-top: 10px;
  }
}
/* ==============================
   Responsive Header & Layout
============================== */

/* === For Tablet & Mobile Devices === */
@media (max-width: 768px) {
  /* Header fix */
  .main-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .logo {
    font-size: 1.4em;
  }

  .nav-buttons {
    display: flex;
    gap: 6px;
  }

  .nav-buttons button {
    padding: 6px 10px;
    font-size: 0.9em;
  }

  /* Cards smaller & readable */
  .card, .form-container {
    padding: 20px;
    margin: 10px;
    font-size: 0.95em;
  }

  /* Headings centered with proper line height */
  h1, h2, h3 {
    text-align: center;
    line-height: 1.3;
    font-size: 1.2em;
  }

  p {
    text-align: center;
    font-size: 0.95em;
  }

  /* Buttons mobile fit */
  .btn {
    width: 100%;
    text-align: center;
    font-size: 1em;
    margin-top: 8px;
  }

  /* Footer text small but clear */
  .site-footer {
    font-size: 0.9em;
    padding: 15px;
  }
}

/* === Very Small Devices (like 360px width) === */
@media (max-width: 420px) {
  .logo {
    font-size: 1.2em;
  }
  .nav-buttons button {
    padding: 5px 8px;
    font-size: 0.8em;
  }
}
/* ===== Responsive Fix for Logged-in Pages ===== */

/* Tablet view */
@media (max-width: 992px) {
  .dashboard-container,
  .earn-container,
  .cashout-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dashboard-card,
  .earn-item,
  .cashout-box {
    width: 100%;
    margin-bottom: 15px;
  }

  .main-header {
    flex-wrap: wrap;
    text-align: center;
  }

  .nav-right {
    margin-top: 10px;
  }
}

/* Mobile view */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }

  .logo {
    font-size: 1.2em;
  }

  .coin-display {
    font-size: 13px;
    padding: 5px 10px;
  }

  .dashboard-card,
  .earn-item,
  .cashout-box {
    font-size: 14px;
    padding: 12px;
  }

  .btn,
  .footer-links a {
    font-size: 13px;
    padding: 6px 10px;
  }
}
