/* =====================================================
   1WIN CRYPTO CASINO - Professional Polish Version
   Modern, clean design inspired by 1win.fyi
   ===================================================== */

/* CSS Variables */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #232f45;
  
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  
  --gradient-primary: linear-gradient(135deg, #3b82f6, #22d3ee);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-dark: linear-gradient(180deg, #0a0e17, #111827);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(59, 130, 246, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Background Gradient */
.bg-grad {
  position: fixed;
  inset: -10% -10% -10% -10%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(59, 130, 246, 0.15), transparent 55%),
    radial-gradient(900px 600px at -10% 10%, rgba(34, 211, 238, 0.15), transparent 45%),
    radial-gradient(800px 500px at 50% 100%, rgba(168, 85, 247, 0.1), transparent 50%),
    linear-gradient(180deg, #050a12, #0a0e17 60%, #070d15);
  filter: saturate(120%) blur(0.3px);
}

/* Starfield Canvas */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  display: block;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #050a12;
}

body {
  font-family: var(--font-family);
  background: #050a12;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  gap: 20px;
}

.logo-link {
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.highlight {
  color: var(--accent-gold);
}

.nav-link.highlight:hover {
  background: rgba(245, 158, 11, 0.1);
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn-login, .btn-signup {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

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

.btn-login:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-signup {
  color: #000;
  background: var(--gradient-gold);
  border: none;
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  color: #000;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 18, 0.95);
  backdrop-filter: blur(12px);
  padding: 20px;
  z-index: 999;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.mobile-nav-link.highlight {
  color: var(--accent-gold);
}

.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.mobile-buttons .btn-login,
.mobile-buttons .btn-signup {
  text-align: center;
  padding: 14px 20px;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb-section {
  background: rgba(10, 14, 23, 0.3);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--accent-cyan);
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
  flex: 1;
  padding: 30px 0 50px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

/* Article Main */
.article-main {
  background: rgba(10, 14, 23, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-image-link {
  display: block;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.text-block {
  padding: 25px 30px;
}

.text-block p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.text-block.highlight-block {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.05));
  border-left: 4px solid var(--accent-blue);
  margin: 0 30px 25px;
  padding: 20px 25px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Content Sections */
.content-section {
  padding: 25px 30px;
}

.content-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  padding-left: 15px;
}

.content-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.content-section p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.7;
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: var(--text-secondary);
  font-size: 15px;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.inline-link {
  color: var(--accent-cyan);
  font-weight: 600;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Advantages List */
.advantages-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.advantages-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.advantages-list li:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--border-accent);
}

.advantage-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.advantage-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* Content Images */
.content-image-link, .bonus-banner, .promo-banner-link {
  display: block;
  margin: 0 30px 25px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.content-image-link:hover, .bonus-banner:hover, .promo-banner-link:hover {
  transform: scale(1.02);
}

.content-image, .bonus-image, .promo-banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.brand-link {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Promo Code Section */
.promo-code-section {
  padding: 25px 30px;
}

.promo-code-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.promo-code-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.promo-code-card:hover {
  transform: scale(1.03);
}

.promo-code-image {
  width: 100%;
  height: auto;
}

.promo-code-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  text-align: center;
}

.promo-code-text {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.promo-code-desc {
  display: block;
  font-size: 13px;
  color: var(--accent-cyan);
  margin-top: 5px;
}

/* Crypto Section */
.crypto-section {
  background: rgba(255, 255, 255, 0.02);
  margin: 25px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.crypto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.crypto-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.crypto-icon {
  font-size: 28px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.crypto-icon.btc { background: linear-gradient(135deg, #f7931a, #ffd600); color: #fff; }
.crypto-icon.eth { background: linear-gradient(135deg, #627eea, #c99df6); color: #fff; }
.crypto-icon.usdt { background: linear-gradient(135deg, #26a17b, #50e3c2); color: #fff; }
.crypto-icon.trx { background: linear-gradient(135deg, #ff0013, #ff6b6b); color: #fff; }
.crypto-icon.ltc { background: linear-gradient(135deg, #bfbbbb, #fff); color: #345d9d; }
.crypto-icon.xmr { background: linear-gradient(135deg, #ff6600, #ffa500); color: #fff; }
.crypto-icon.doge { background: linear-gradient(135deg, #c2a633, #e8d362); color: #fff; }
.crypto-icon.bnb { background: linear-gradient(135deg, #f3ba2f, #ffd700); color: #000; }
.crypto-icon.xrp { background: linear-gradient(135deg, #23292f, #4a5568); color: #fff; }
.crypto-icon.dash { background: linear-gradient(135deg, #008ce7, #00bfff); color: #fff; }

.crypto-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* CTA Section */
.cta-section {
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.05));
  margin: 25px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
}

.cta-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  color: #000;
}

.cta-icon {
  font-size: 20px;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: rgba(10, 14, 23, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.sidebar-card.featured {
  border-color: var(--accent-gold);
}

.sidebar-card-header {
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.sidebar-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
}

.sidebar-card-content {
  display: block;
}

.sidebar-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.sidebar-card-info {
  padding: 15px;
}

.sidebar-card-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.sidebar-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.sidebar-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.sidebar-info {
  background: rgba(10, 14, 23, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.sidebar-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.sidebar-info ul {
  list-style: none;
}

.sidebar-info li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-info li:last-child {
  border-bottom: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: rgba(10, 14, 23, 0.2);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
}

.footer-links li, .footer-contact li {
  margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 20px;
}

.footer-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-disclaimer a {
  color: var(--accent-cyan);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .sidebar-info {
    grid-column: span 2;
  }
  
  .crypto-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .nav-menu, .header-buttons {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu {
    display: flex;
  }
  
  .header-container {
    padding: 10px 15px;
  }
  
  .logo-img {
    height: 35px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .breadcrumb {
    font-size: 13px;
  }
  
  .main-content {
    padding: 20px 0 40px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .text-block {
    padding: 20px;
  }
  
  .text-block.highlight-block {
    margin: 0 20px 20px;
    padding: 15px 20px;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .content-section h2 {
    font-size: 18px;
  }
  
  .content-image-link, .bonus-banner, .promo-banner-link {
    margin: 0 20px 20px;
  }
  
  .crypto-section {
    margin: 20px;
    padding: 20px;
  }
  
  .crypto-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .crypto-card {
    padding: 15px 8px;
  }
  
  .crypto-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  
  .crypto-name {
    font-size: 11px;
  }
  
  .cta-section {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .cta-section h2 {
    font-size: 20px;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }
  
  .sidebar-info {
    grid-column: auto;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto 15px;
  }
  
  .promo-code-section {
    padding: 20px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
  }
  
  .breadcrumb {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .text-block {
    padding: 15px;
  }
  
  .text-block p {
    font-size: 14px;
  }
  
  .content-section {
    padding: 15px;
  }
  
  .content-section h2 {
    font-size: 16px;
    padding-left: 12px;
  }
  
  .content-section h2::before {
    width: 3px;
    height: 20px;
  }
  
  .content-section p, .feature-list li {
    font-size: 14px;
  }
  
  .advantages-list li {
    padding: 12px 15px;
    gap: 12px;
  }
  
  .advantage-icon {
    font-size: 20px;
  }
  
  .advantage-text {
    font-size: 14px;
  }
  
  .content-image-link, .bonus-banner, .promo-banner-link {
    margin: 0 15px 15px;
  }
  
  .crypto-section {
    margin: 15px;
    padding: 15px;
  }
  
  .crypto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-section {
    margin: 15px;
    padding: 25px 15px;
  }
  
  .cta-section h2 {
    font-size: 18px;
  }
  
  .cta-section p {
    font-size: 14px;
  }
  
  .promo-code-text {
    font-size: 22px;
  }
  
  .sidebar-card-info h3 {
    font-size: 15px;
  }
  
  .footer {
    padding: 30px 0 20px;
  }
  
  .footer-disclaimer p {
    font-size: 11px;
  }
}

/* Extra Small */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  
  .text-block, .content-section {
    padding: 12px;
  }
  
  .content-image-link, .bonus-banner, .promo-banner-link,
  .crypto-section, .cta-section, .text-block.highlight-block {
    margin-left: 12px;
    margin-right: 12px;
  }
  
  .crypto-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .crypto-name {
    font-size: 10px;
  }
  
  .cta-button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(255, 255, 255, 0.3);
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
  }
}
