/* Complete redesign - Dark premium crypto theme with cyan accents */
:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --bg-card: #111111;
  --primary-cyan: #00f5ff;
  --primary-blue: #0066ff;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --text-dim: #666666;
  --border-subtle: #1a1a1a;
  --border-glow: rgba(0, 245, 255, 0.3);
  --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.7;
  font-size: 16px;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
}

/* Header - glowing dark premium design */
header {
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 25px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

/* Logo with gradient and icon */
.logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s ease;
}

.logo svg {
  color: var(--primary-cyan);
  filter: drop-shadow(0 0 10px var(--primary-cyan));
}

.logo:hover {
  transform: scale(1.05);
}

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

/* Futuristic navigation */
.main-nav {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.4s ease;
  z-index: -1;
  opacity: 0.1;
}

.main-nav a:hover {
  color: var(--primary-cyan);
  box-shadow: 0 0 20px var(--border-glow);
}

.main-nav a:hover::before {
  left: 0;
}

/* Glowing search with neon effect */
.search-container {
  position: relative;
  width: 100%;
  max-width: 350px;
}

#search-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-white);
  font-size: 14px;
  transition: all 0.3s ease;
}

#search-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px var(--border-glow);
  background-color: var(--bg-darker);
}

#search-input::placeholder {
  color: var(--text-dim);
}

/* Main content with gradient accents */
main {
  padding: 80px 0;
  min-height: 75vh;
}

.hero-section {
  text-align: center;
  margin-bottom: 100px;
  padding: 60px 0;
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 25px;
  letter-spacing: -3px;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 80px rgba(0, 245, 255, 0.3);
}

.hero-subtitle {
  color: var(--text-gray);
  font-size: 22px;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Futuristic card grid with glow effects */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 35px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.article-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  background: rgba(17, 17, 17, 0.8);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-cyan);
  font-weight: 700;
  margin-bottom: 18px;
  display: inline-block;
  padding: 5px 12px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 6px;
}

.card-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-white);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.card-title a:hover {
  color: var(--primary-cyan);
}

.card-excerpt {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.read-more {
  color: var(--primary-cyan);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.read-more:hover {
  gap: 12px;
  text-shadow: 0 0 10px var(--primary-cyan);
}

/* Premium article page design */
.article-container {
  background: var(--bg-card);
  padding: 70px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-link:hover {
  color: var(--primary-cyan);
  gap: 14px;
}

.article-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-category {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--bg-darker);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 8px;
}

.article-title {
  font-size: 56px;
  color: var(--text-white);
  margin-bottom: 25px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -2px;
}

.article-meta {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

.article-content {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.8;
}

.article-content h2 {
  color: var(--text-white);
  margin: 60px 0 30px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 15px;
}

.article-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.article-content p {
  margin-bottom: 30px;
}

.article-content ul {
  margin-bottom: 40px;
  padding: 35px;
  background: rgba(0, 245, 255, 0.03);
  border-left: 3px solid var(--primary-cyan);
  border-radius: 8px;
}

.article-content li {
  margin-bottom: 18px;
  position: relative;
  list-style: none;
  padding-left: 30px;
}

.article-content li::before {
  content: "▸";
  color: var(--primary-cyan);
  font-size: 18px;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.article-content strong {
  color: var(--text-white);
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 4px;
}

.article-content a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.article-content a:hover {
  border-bottom-color: var(--primary-cyan);
  text-shadow: 0 0 10px var(--primary-cyan);
}

/* Glowing navigation cards */
.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--border-subtle);
}

.nav-prev,
.nav-next {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.4s ease;
  background: var(--bg-card);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.nav-prev::before,
.nav-next::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: left 0.4s ease;
}

.nav-prev:hover,
.nav-next:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.nav-prev:hover::before,
.nav-next:hover::before {
  left: 0;
}

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

.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-cyan);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.nav-title {
  font-size: 17px;
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.4;
}

/* Premium dark footer */
footer {
  background: var(--bg-darker);
  color: var(--text-gray);
  padding: 80px 0 40px;
  margin-top: 100px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--text-white);
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 15px;
}

.footer-col a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 15px;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--primary-cyan);
  transform: translateX(5px);
  text-shadow: 0 0 10px var(--primary-cyan);
}

.footer-col p {
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-dim);
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-dim);
}

/* Premium page styles */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 50px;
}

.page-header {
  text-align: center;
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 64px;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 25px;
  letter-spacing: -2.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 22px;
  color: var(--text-gray);
  font-weight: 400;
  line-height: 1.6;
}

.page-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-gray);
}

.page-content h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 60px 0 30px;
  color: var(--text-white);
  position: relative;
  padding-bottom: 15px;
  letter-spacing: -1px;
}

.page-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.page-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 45px 0 25px;
  color: var(--text-white);
}

.page-content p {
  margin-bottom: 28px;
}

.page-content ul,
.page-content ol {
  margin-bottom: 35px;
  padding: 35px;
  background: rgba(0, 245, 255, 0.03);
  border-left: 3px solid var(--primary-cyan);
  border-radius: 8px;
}

.page-content li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  list-style: none;
}

.page-content li::before {
  content: "▸";
  color: var(--primary-cyan);
  font-size: 18px;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-content strong {
  color: var(--text-white);
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 4px;
}

.page-content a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.page-content a:hover {
  border-bottom-color: var(--primary-cyan);
  text-shadow: 0 0 10px var(--primary-cyan);
}

/* Glowing CTA box */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 50px;
  margin: 60px 0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.cta-box h3 {
  color: var(--text-white);
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 800;
}

.cta-box p {
  color: var(--text-gray);
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--bg-darker);
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 25px;
  }

  .header-content {
    flex-direction: column;
    gap: 25px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .main-nav a {
    font-size: 12px;
    padding: 8px 12px;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .article-title,
  .page-title {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .article-container,
  .page-container {
    padding: 40px 25px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
