/* 
 Brand Design System - 1wincasinobr.com
 Gaming industry focused design with dark UI scheme and bright accents
*/

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties for Brand Colors */
:root {
  --brand-dark: #090f1e;
  --brand-primary: #2f9df2;
  --brand-secondary: #3a435a;
  --brand-success: #86ff00;
  --brand-header: #252f48;
  --brand-promo: #284673;
  --brand-text-primary: #ffffff;
  --brand-text-secondary: #a5a5a5;
  --brand-gradient-primary: linear-gradient(135deg, #2f9df2 0%, #1079d7 100%);
  --brand-gradient-success: linear-gradient(135deg, #86ff00 0%, #86ff00 100%);
  --brand-gradient-card: linear-gradient(135deg, #3a435a 0%, transparent 100%);
  --brand-radius: 10px;
  --brand-radius-pill: 50px;
  --brand-radius-card: 12px;
  --brand-transition: 0.5s ease;
  --brand-section-gap: 32px;
  --brand-section-gap-mobile: 24px;
  --brand-inner-padding: 20px;
}

/* Base Styles */
html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--brand-dark);
  color: var(--brand-text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Typography System */
h1, .h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-text-primary);
}

h2, .h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-text-primary);
}

h3, .h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-text-primary);
}

p, .text-base {
  font-size: 1rem;
  font-weight: 400;
  color: var(--brand-text-primary);
}

.text-small {
  font-size: 0.8rem;
  line-height: 1.5;
}

.text-tiny {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Container System */
.brand-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--brand-inner-padding);
}

/* Section Spacing */
.brand-section {
  margin-bottom: var(--brand-section-gap);
}

@media (max-width: 575px) {
  .brand-section {
    margin-bottom: var(--brand-section-gap-mobile);
  }
  
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--brand-radius-pill);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--brand-transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-gradient-primary);
  color: var(--brand-text-primary);
  box-shadow: 0 4px 15px rgba(47, 157, 242, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 157, 242, 0.4);
}

.btn-success {
  background: var(--brand-gradient-success);
  color: #000000;
  box-shadow: 0 4px 15px rgba(134, 255, 0, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(134, 255, 0, 0.4);
}

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

.btn-secondary:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
}

/* Card Components */
.brand-card {
  background: var(--brand-gradient-card);
  border-radius: var(--brand-radius);
  padding: var(--brand-inner-padding);
  transition: all var(--brand-transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-card {
  background: var(--brand-secondary);
  border-radius: var(--brand-radius-card);
  overflow: hidden;
  transition: all var(--brand-transition);
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card img {
  border-radius: var(--brand-radius-card);
  transition: all var(--brand-transition);
}

/* Promo Blocks */
.promo-block {
  background: var(--brand-promo);
  border-radius: var(--brand-radius);
  padding: var(--brand-inner-padding);
  position: relative;
  overflow: hidden;
}

.promo-code {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed var(--brand-primary);
  border-radius: var(--brand-radius);
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: var(--brand-success);
  cursor: pointer;
  transition: all var(--brand-transition);
}

.promo-code:hover {
  animation: swing 1s infinite;
}

.promo-arrow {
  animation: pulse 2s infinite;
  color: var(--brand-primary);
}

/* Header Styles */
.brand-header {
  background: var(--brand-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--brand-section-gap);
}

@media (max-width: 575px) {
  .brand-header {
    margin-bottom: var(--brand-section-gap-mobile);
  }
}

.brand-header .navmenu a {
  color: var(--brand-text-secondary);
  font-weight: 500;
  transition: all var(--brand-transition);
}

.brand-header .navmenu a:hover,
.brand-header .navmenu a.active {
  color: var(--brand-primary);
}

/* Footer Styles */
.brand-footer {
  background: var(--brand-header);
  color: var(--brand-text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-footer a {
  color: var(--brand-text-secondary);
  transition: all var(--brand-transition);
}

.brand-footer a:hover {
  color: var(--brand-primary);
}

/* Gaming Grid System */
.games-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 991px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: auto;
    display: flex;
  }
  
  .games-grid .game-card {
    min-width: 180px;
  }
}

/* Animations */
@keyframes swing {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu */
@media (max-width: 767px) {
  .brand-header .navmenu {
    background: var(--brand-header);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--brand-inner-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .brand-header .navmenu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Sidebar Widgets */
.brand-widget {
  background: var(--brand-secondary);
  border-radius: var(--brand-radius);
  margin-bottom: 1.5rem;
  padding: var(--brand-inner-padding);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-widget h3,
.brand-widget .widget-title {
  color: var(--brand-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.brand-widget a {
  color: var(--brand-text-secondary);
  text-decoration: none;
  transition: all var(--brand-transition);
  display: block;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.brand-widget a:hover {
  color: var(--brand-primary);
  background: rgba(47, 157, 242, 0.1);
}

.brand-widget .tag-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--brand-radius-pill);
  font-size: 0.875rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
  transition: all var(--brand-transition);
}

.brand-widget .tag-link:hover {
  background: var(--brand-primary);
  color: var(--brand-text-primary);
}

.brand-widget input[type="search"] {
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--brand-radius);
  color: var(--brand-text-primary);
  padding: 0.75rem;
  width: 100%;
  transition: all var(--brand-transition);
}

.brand-widget input[type="search"]:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(47, 157, 242, 0.2);
}

.brand-widget input[type="search"]::placeholder {
  color: var(--brand-text-secondary);
}

.brand-widget select {
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--brand-radius);
  color: var(--brand-text-primary);
  padding: 0.75rem;
  width: 100%;
  transition: all var(--brand-transition);
}

.brand-widget select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(47, 157, 242, 0.2);
}

/* Utility Classes */
.text-gradient-primary {
  background: var(--brand-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-success {
  background: var(--brand-gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--brand-success);
}

.bg-brand-dark { background-color: var(--brand-dark); }
.bg-brand-primary { background-color: var(--brand-primary); }
.bg-brand-secondary { background-color: var(--brand-secondary); }
.bg-brand-success { background-color: var(--brand-success); }
.bg-brand-header { background-color: var(--brand-header); }
.bg-brand-promo { background-color: var(--brand-promo); }

.text-brand-primary { color: var(--brand-text-primary); }
.text-brand-secondary { color: var(--brand-text-secondary); }
.text-brand-accent { color: var(--brand-primary); }
.text-brand-success { color: var(--brand-success); }

.border-brand-primary { border-color: var(--brand-primary); }
.border-brand-secondary { border-color: var(--brand-secondary); }

/* Responsive Layout Fixes */
@media (max-width: 1023px) {
  .brand-container {
    padding: 0 1rem;
  }
  
  .grid.grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .col-span-3.lg\:col-span-2 {
    grid-column: span 1;
  }
  
  .hidden.lg\:block {
    display: none;
  }
}

/* Content Area Adjustments */
.prose {
  color: var(--brand-text-primary);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: var(--brand-primary);
}

/* Override H1 to be white */
.prose h1 {
  color: var(--brand-text-primary) !important;
}

/* Enhanced Table Styles */
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: var(--brand-secondary);
  border-radius: var(--brand-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--brand-primary);
}

.prose table thead {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1e7bc7 100%);
}

.prose table thead th {
  color: var(--brand-text-primary);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid var(--brand-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.prose table thead th:last-child {
  border-right: none;
}

.prose table tbody tr {
  transition: all var(--brand-transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.prose table tbody tr:hover {
  background: rgba(47, 157, 242, 0.1);
  transform: scale(1.01);
}

.prose table tbody td {
  padding: 0.875rem 1rem;
  color: var(--brand-text-primary);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  font-size: 0.9rem;
}

.prose table tbody td:last-child {
  border-right: none;
}

.prose table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Grid Effect */
.prose table.grid-table {
  border: 2px solid var(--brand-primary);
}

.prose table.grid-table th,
.prose table.grid-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.prose table.grid-table thead th {
  border-bottom: 2px solid var(--brand-primary);
}

/* Responsive Table */
@media (max-width: 767px) {
  .prose table {
    font-size: 0.8rem;
    margin: 1rem 0;
  }
  
  .prose table thead th,
  .prose table tbody td {
    padding: 0.5rem 0.75rem;
  }
  
  .prose table thead th {
    font-size: 0.85rem;
  }
  
  .prose table tbody td {
    font-size: 0.8rem;
  }
}

/* Table with alternating colors */
.prose table.striped tbody tr:nth-child(odd) {
  background: rgba(58, 67, 90, 0.3);
}

.prose table.striped tbody tr:nth-child(even) {
  background: rgba(47, 157, 242, 0.05);
}

/* Compact table variant */
.prose table.compact thead th,
.prose table.compact tbody td {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Table Caption Styling */
.prose table caption {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.prose a {
  color: var(--brand-primary);
  transition: all var(--brand-transition);
}

.prose a:hover {
  color: var(--brand-success);
}

.prose code {
  background: var(--brand-secondary);
  color: var(--brand-text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.prose pre {
  background: var(--brand-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Post Meta Styles */
.post-meta {
  color: var(--brand-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-meta a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: all var(--brand-transition);
}

.post-meta a:hover {
  color: var(--brand-success);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  background: #252f48;
  color: var(--brand-text-primary);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(48, 57, 78, 0.3);
  transition: all var(--brand-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top-btn:hover {
  background: #30394e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(48, 57, 78, 0.4);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px);
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  .scroll-to-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  
  .scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Circular Flag Styling */
.flag-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--brand-transition);
  flex-shrink: 0;
  margin-left: 0.75rem; /* Add spacing between text and flag */
}

.flag-circle:hover {
  border-color: var(--brand-primary);
  transform: scale(1.1);
}

/* Selection Colors */
::selection {
  background-color: var(--brand-primary);
  color: var(--brand-text-primary);
}

::-moz-selection {
  background-color: var(--brand-primary);
  color: var(--brand-text-primary);
}