/* Adriatic Glass Design System - Croatian Gaming Portal */
/* Static HTML+CSS Version */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--gradient-sandy);
  color: hsl(var(--foreground));
  font-family: inherit;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Adriatic Glass Color Palette */
  --background: 39 42% 95%; /* Sandy beach background */
  --foreground: 214 84% 16%; /* Navy text for readability */

  /* Glass card system */
  --glass-card: 180 100% 98% / 0.85; /* Glass card with transparency */
  --glass-border: 180 100% 100% / 0.25; /* Subtle glass border */
  --glass-shadow: 214 84% 16% / 0.08; /* Soft shadow */

  /* Sea gradient colors */
  --sea-teal: 180 100% 42%; /* Teal */
  --sea-azure: 194 89% 67%; /* Azure */
  --sea-deep: 214 84% 16%; /* Deep navy */

  /* Interactive states */
  --primary: 180 100% 42%; /* Teal primary */
  --primary-foreground: 0 0% 100%; /* White text on primary */
  --primary-hover: 180 100% 38%; /* Darker teal on hover */

  --secondary: 194 89% 67%; /* Azure secondary */
  --secondary-foreground: 214 84% 16%; /* Navy text on secondary */
  --secondary-hover: 194 89% 62%; /* Darker azure on hover */

  /* Warning/Alert colors for responsible gaming */
  --warning: 45 100% 51%; /* Orange for warnings */
  --warning-foreground: 0 0% 100%;
  --destructive: 0 84% 50%; /* Red for alerts */
  --destructive-foreground: 0 0% 100%;

  /* Form elements */
  --input: 180 100% 98% / 0.7; /* Glass input background */
  --input-border: 180 100% 100% / 0.3; /* Input border */
  --ring: 180 100% 42%; /* Focus ring color */

  /* Muted colors */
  --muted: 39 42% 90%; /* Light sandy for muted sections */
  --muted-foreground: 214 50% 35%; /* Muted navy text */

  /* Borders and accents */
  --border: 180 100% 100% / 0.25; /* Glass borders */
  --accent: 194 89% 67% / 0.1; /* Subtle accent background */
  --accent-foreground: 214 84% 16%; /* Navy text on accent */

  --radius: 1rem; /* Larger radius for glass aesthetic */

  /* Custom gradients */
  --gradient-sea: linear-gradient(135deg, hsl(var(--sea-teal)), hsl(var(--sea-azure)));
  --gradient-glass: linear-gradient(135deg, hsl(180 100% 100% / 0.2), hsl(180 100% 100% / 0.05));
  --gradient-sandy: linear-gradient(180deg, hsl(39 42% 98%), hsl(39 42% 95%));

  /* Glassmorphism effects */
  --glass-blur: blur(20px);
  --glass-backdrop: saturate(200%) blur(20px);
  
  /* Shadows */
  --shadow-glass: 0 8px 32px hsl(var(--glass-shadow));
  --shadow-hover: 0 12px 40px hsl(var(--glass-shadow));
  --shadow-card: 0 4px 24px hsl(var(--glass-shadow));

  /* Animation values */
  --transition-glass: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.2s ease-in-out;
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.75rem;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 1rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mb-8 { margin-bottom: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.leading-relaxed { line-height: 1.625; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-full { border-radius: 9999px; }

.shadow-glass { box-shadow: var(--shadow-glass); }
.shadow-glass-hover { box-shadow: var(--shadow-hover); }
.shadow-glass-card { box-shadow: var(--shadow-card); }

.transition-all { transition: var(--transition-glass); }
.transition-colors { transition: color var(--transition-smooth); }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.z-50 { z-index: 50; }

.backdrop-blur-glass {
  backdrop-filter: var(--glass-backdrop);
}

.overflow-hidden { overflow: hidden; }
.object-contain { object-fit: contain; }

.cursor-pointer { cursor: pointer; }

/* ===== COLOR UTILITIES ===== */
.bg-glass-card { background-color: hsl(var(--glass-card)); }
.bg-gradient-sea { background: var(--gradient-sea); }
.bg-gradient-sandy { background: var(--gradient-sandy); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-white { background-color: white; }

.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-hover { color: hsl(var(--primary-hover)); }
.text-white { color: white; }

.border-glass-border { border-color: hsl(var(--glass-border)); }

/* Hover states */
.hover\:bg-primary\/5:hover { background-color: hsl(var(--primary) / 0.05); }
.hover\:border-primary\/30:hover { border-color: hsl(var(--primary) / 0.3); }
.hover\:shadow-glass-hover:hover { box-shadow: var(--shadow-hover); }
.hover\:text-primary-hover:hover { color: hsl(var(--primary-hover)); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-left { text-align: left; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-6xl { font-size: 3.75rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glass-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

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

.animate-glass-float {
  animation: glass-float 3s ease-in-out infinite;
}

/* ===== MOBILE RESPONSIVE HELPERS ===== */
.hidden { display: none; }

@media (max-width: 1023px) {
  .lg\:flex { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
}