/* Kingdom Casino - CSS Styles */

/* CSS Variables */
:root {
  --kingdom-dark-blue: #1e293b;
  --kingdom-burgundy: #7f1d1d;
  --kingdom-gold: #f59e0b;
  --kingdom-stone-gray: #64748b;
  --kingdom-emerald: #059669;
  --kingdom-fiery-orange: #ea580c;
  --kingdom-shining-gold: #fbbf24;
  --font-cinzel: "Cinzel", "Times New Roman", serif;
  --font-merriweather: "Merriweather", "Times New Roman", serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-merriweather);
  line-height: 1.6;
  color: #ffffff;
  overflow-x: hidden;
}

/* Layout */
.page-wrapper {
  min-height: 100vh;
  background: linear-gradient(to bottom, #0f172a 0%, #1e293b 30%, #334155 100%);
  position: relative;
}

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

/* Castle Background */
.castle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.6) 0%,
    rgba(30, 41, 59, 0.4) 50%,
    rgba(30, 41, 59, 0.7) 100%
  );
}

/* Navigation */
.navigation {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crown-icon {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.logo-text {
  font-family: var(--font-cinzel);
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, var(--kingdom-shining-gold), var(--kingdom-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--kingdom-shining-gold);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kingdom-shining-gold), var(--kingdom-gold));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--kingdom-shining-gold);
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
  border: 2px solid var(--kingdom-shining-gold);
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
  border-color: #fcd34d;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--kingdom-dark-blue), #334155);
  border: 2px solid var(--kingdom-stone-gray);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #334155, #475569);
  border-color: var(--kingdom-shining-gold);
  color: var(--kingdom-shining-gold);
  transform: translateY(-2px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--kingdom-emerald), #047857, #065f46);
  border: 3px solid var(--kingdom-shining-gold);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(5, 150, 105, 0.6);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}

.btn-full {
  width: 100%;
}

.btn-category {
  border: 2px solid transparent;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

.btn-category:hover {
  border-color: var(--kingdom-shining-gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.category-mage {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.category-knight {
  background: linear-gradient(135deg, #dc2626, var(--kingdom-gold));
}

.category-thief {
  background: linear-gradient(135deg, var(--kingdom-emerald), #0d9488);
}

.category-king {
  background: linear-gradient(135deg, var(--kingdom-gold), #eab308);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 2rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(30, 41, 59, 0.5), var(--kingdom-dark-blue));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-cinzel);
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.title-line {
  display: block;
}

.title-gold {
  background: linear-gradient(45deg, var(--kingdom-shining-gold), var(--kingdom-gold), #d97706);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

.title-red {
  color: #ef4444;
}

.hero-description {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Bonus Card */
.bonus-card {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.8), rgba(251, 191, 36, 0.2));
  border: 2px solid rgba(251, 191, 36, 0.5);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.bonus-card:hover {
  transform: translateY(-5px);
  border-color: var(--kingdom-shining-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bonus-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bonus-title {
  font-family: var(--font-cinzel);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--kingdom-shining-gold);
}

.bonus-amount {
  font-family: var(--font-cinzel);
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.bonus-details {
  font-size: 1.1rem;
  color: #fbbf24;
  margin-bottom: 2rem;
}

.secondary-bonus {
  background: rgba(5, 150, 105, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 2rem;
  margin-bottom: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

/* Sections */
.games-section,
.advantages-section,
.reviews-section {
  padding: 5rem 0;
  position: relative;
}

.advantages-section {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(59, 130, 246, 0.2));
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-cinzel);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--kingdom-shining-gold), var(--kingdom-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.title-red {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* Game Categories */
.game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.8));
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--kingdom-shining-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.game-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.game-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(251, 191, 36, 0.9);
  color: var(--kingdom-dark-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: bold;
}

.game-content {
  padding: 1.5rem;
}

.game-title {
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--kingdom-shining-gold);
  margin-bottom: 1rem;
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Advantage Icons - Replace emoji section */
.advantage-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

/* CSS-only Icons */
.icon-crown::before {
  content: "";
  width: 32px;
  height: 24px;
  background: currentColor;
  clip-path: polygon(
    0% 100%,
    10% 70%,
    20% 100%,
    30% 60%,
    40% 100%,
    50% 50%,
    60% 100%,
    70% 60%,
    80% 100%,
    90% 70%,
    100% 100%,
    85% 85%,
    15% 85%
  );
}

.icon-shield::before {
  content: "";
  width: 28px;
  height: 32px;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.icon-coins::before {
  content: "";
  width: 32px;
  height: 32px;
  background: currentColor;
  border-radius: 50%;
  position: relative;
  box-shadow: 8px 0 0 -4px currentColor, 16px 0 0 -8px currentColor;
}

.icon-trophy::before {
  content: "";
  width: 24px;
  height: 28px;
  background: currentColor;
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 30%,
    85% 60%,
    85% 80%,
    70% 80%,
    70% 100%,
    30% 100%,
    30% 80%,
    15% 80%,
    15% 60%,
    0% 30%
  );
}

/* Remove emoji content */
.crown-icon,
.shield-icon,
.coin-icon,
.trophy-icon {
  display: none;
}

.animated-icon {
  animation: bounce 2s ease-in-out infinite;
}

.animated-icon:nth-child(1) {
  animation-delay: 0s;
}
.animated-icon:nth-child(2) {
  animation-delay: 0.2s;
}
.animated-icon:nth-child(3) {
  animation-delay: 0.4s;
}
.animated-icon:nth-child(4) {
  animation-delay: 0.6s;
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1) rotate(12deg);
}

.icon-gold {
  color: var(--kingdom-shining-gold);
}
.icon-blue {
  color: #60a5fa;
}
.icon-green {
  color: #34d399;
}
.icon-red {
  color: #f87171;
}

.advantage-title {
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.advantage-description {
  color: #cbd5e1;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.3), rgba(30, 41, 59, 0.8));
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--kingdom-shining-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  position: relative;
  margin-right: 1rem;
}

.reviewer-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--kingdom-shining-gold);
}

.avatar-crown {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--kingdom-shining-gold);
  border-radius: 50%;
  padding: 2px;
  font-size: 0.75rem;
}

.reviewer-name {
  font-family: var(--font-cinzel);
  font-weight: bold;
  color: white;
  margin-bottom: 0.25rem;
}

.reviewer-title {
  color: var(--kingdom-shining-gold);
  font-size: 0.875rem;
}

.review-rating {
  margin-bottom: 1rem;
}

.star {
  color: var(--kingdom-shining-gold);
  margin-right: 0.25rem;
}

.review-text {
  color: #cbd5e1;
  font-style: italic;
}

/* Footer */
.footer {
  background: linear-gradient(to bottom, var(--kingdom-dark-blue), #000000);
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  position: relative;
  padding: 4rem 0 2rem;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 0;
}

.footer-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--kingdom-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--kingdom-shining-gold);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--kingdom-shining-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--kingdom-shining-gold);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.help-text {
  font-size: 0.875rem;
  color: #fbbf24;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  padding-top: 2rem;
  position: relative;
  z-index: 10;
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.copyright {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-badges {
  display: flex;
  gap: 1rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: bold;
}

.badge-green {
  background: rgba(5, 150, 105, 0.8);
}
.badge-blue {
  background: rgba(59, 130, 246, 0.8);
}
.badge-gold {
  background: rgba(251, 191, 36, 0.8);
  color: var(--kingdom-dark-blue);
}

.disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 1rem;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4), 0 0 20px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 12px 35px rgba(5, 150, 105, 0.6), 0 0 30px rgba(251, 191, 36, 0.5);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-buttons {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .bonus-card {
    padding: 1.5rem;
  }

  .btn-xl {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

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

/* Focus States */
button:focus,
a:focus {
  outline: 2px solid var(--kingdom-shining-gold);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .game-card,
  .advantage-card,
  .review-card,
  .bonus-card {
    border-width: 3px;
  }

  .hero-title,
  .section-title {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--kingdom-dark-blue), #334155);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--kingdom-shining-gold), var(--kingdom-gold));
  border-radius: 6px;
  border: 2px solid var(--kingdom-dark-blue);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fcd34d, var(--kingdom-shining-gold));
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img[data-loaded="false"] {
  opacity: 0;
}

img[data-loaded="true"] {
  opacity: 1;
}
