/* =====================================================
   Fortuce: Complete Responsive Overrides
   Optimized for Mobile, Tablet & Desktop
   ===================================================== */

/* Base Typography */
body, .menu, .footer-menu, .text-block, .disclaimer, h1, h2, h3, h4, h5, h6, p, a, span, button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Reset & Responsive Foundation */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

/* Responsive Images */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container Improvements */
.container, .container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.container {
  max-width: 1320px;
}

/* ===== HEADER RESPONSIVE ===== */
#header, header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

#header .logo-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#header .logo-block .big-new-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

#header .logo-block .big-new-logo img {
  width: 220px;
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  vertical-align: middle;
}

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

/* Navigation Menu */
.menu-wrapper.menu-top-menu-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-wrapper .menu-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.menu-wrapper .menu-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.menu-top-main-menu-new-design-container ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.menu-top-main-menu-new-design-container ul li {
  position: relative;
}

.menu-top-main-menu-new-design-container ul li a {
  display: block;
  padding: 10px 15px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* ===== BRAND CARDS RESPONSIVE ===== */
.brands-block-content {
  width: 100%;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg, #fff);
}

.logo-block {
  flex: 0 0 auto;
  min-width: 80px;
}

.content-block {
  flex: 1 1 auto;
  min-width: 200px;
  padding: 15px;
}

.hp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 10px;
}

.hp-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* ===== BUTTONS RESPONSIVE ===== */
.new-get-bonus-button, .join-now-btn, .btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* ===== FOOTER RESPONSIVE ===== */
footer, .footer {
  width: 100%;
}

.footer-disclaimer {
  padding: 20px 15px;
}

.footer-disclaimer .logo-footer img {
  max-width: 160px;
  height: auto;
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== TABLES RESPONSIVE ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

/* ===== FORMS RESPONSIVE ===== */
input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  font-size: 16px; /* Prevents zoom on iOS */
  border-radius: 6px;
}

/* =====================================================
   MEDIA QUERIES - Mobile First Approach
   ===================================================== */

/* Extra Small (Phones) - Max 575px */
@media (max-width: 575px) {
  html { font-size: 14px; }
  
  .container { padding-left: 12px; padding-right: 12px; }
  
  h1 { font-size: 1.75rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.5rem !important; line-height: 1.25 !important; }
  h3 { font-size: 1.25rem !important; }
  h4 { font-size: 1.1rem !important; }
  
  #header .logo-block .big-new-logo img {
    width: 150px;
    height: 42px;
  }
  
  .header-wrapper { padding: 10px 5px; }
  
  .header-block .header-nav a {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  
  .brand-row {
    flex-direction: column;
  }
  
  .logo-block {
    width: 100%;
    text-align: center;
  }
  
  .content-block {
    width: 100%;
    text-align: center;
  }
  
  .hp-logo {
    min-height: 60px;
    padding: 15px;
  }
  
  .new-get-bonus-button, .join-now-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  .footer-menu ul {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-disclaimer .disclaimer {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  
  /* Hide desktop elements on mobile */
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  
  /* Table scroll on mobile */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Small (Large Phones/Small Tablets) - 576px to 767px */
@media (min-width: 576px) and (max-width: 767px) {
  html { font-size: 15px; }
  
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.65rem !important; }
  
  #header .logo-block .big-new-logo img {
    width: 170px;
    height: 47px;
  }
  
  .brand-row {
    flex-direction: row;
  }
  
  .logo-block {
    flex: 0 0 120px;
  }
  
  .hp-logo { min-height: 70px; }
}

/* Medium (Tablets) - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
  html { font-size: 15px; }
  
  .container { max-width: 720px; }
  
  h1 { font-size: 2.25rem !important; }
  h2 { font-size: 1.75rem !important; }
  
  #header .logo-block .big-new-logo img {
    width: 180px;
    height: 50px;
  }
  
  .header-nav .col-md-12 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .footer-disclaimer .logo-footer img {
    max-width: 140px;
  }
  
  .footer-menu, .footer-form {
    margin-bottom: 1.5rem;
  }
  
  .hp-logo { min-height: 70px; }
  
  /* Show tablet-specific elements */
  .hide-tablet { display: none !important; }
  .show-tablet { display: block !important; }
}

/* Large (Desktops) - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .container { max-width: 960px; }
  
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
  
  #header .logo-block .big-new-logo img {
    width: 195px;
    height: 54px;
  }
  
  .menu-top-main-menu-new-design-container ul li a {
    padding: 10px 12px;
  }
}

/* Extra Large (Large Desktops) - 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container { max-width: 1140px; }
  
  h1 { font-size: 2.75rem !important; }
  h2 { font-size: 2.15rem !important; }
  
  #header .logo-block .big-new-logo img {
    width: 210px;
    height: 58px;
  }
}

/* XXL (Extra Large Desktops) - 1400px+ */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  
  h1 { font-size: 3rem !important; }
  h2 { font-size: 2.25rem !important; }
  
  /* Desktop visibility */
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .header-block {
    padding: 5px 0;
  }
  
  #header .logo-block .big-new-logo img {
    height: 42px;
    width: auto;
  }
  
  .brand-row {
    min-height: auto;
  }
}

/* ===== HIGH DPI / RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited { text-decoration: underline; }
  
  img { max-width: 100% !important; }
  
  .header, .footer, nav { display: none !important; }
}

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

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }

.gap-1 { gap: 0.5rem !important; }
.gap-2 { gap: 1rem !important; }
.gap-3 { gap: 1.5rem !important; }

.w-100 { width: 100% !important; }
.h-auto { height: auto !important; }

.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

/* ===== SMOOTH TRANSITIONS ===== */
a, button, .brand-row, .hp-logo, input, select {
  transition: all 0.3s ease;
}
