/* Glimmra.today - Main CSS File */
/* Theme: Mixture of diamond, gem, and Dracula elements */

:root {
  /* Main Colors */
  --primary-color: #6a1b9a;          /* Deep purple for Dracula theme */
  --secondary-color: #00b8d4;        /* Bright cyan for gem highlight */
  --accent-color: #ffd700;           /* Gold for diamond accents */
  --dark-color: #2d1b36;             /* Dark purple background */
  --light-color: #f8f9fa;            /* Light color for text on dark backgrounds */
  --light-bg: #f0ebf8;               /* Light purple tinted background */
  
  /* Typography */
  --heading-font: 'Cinzel', serif;   /* Elegant font for headings */
  --body-font: 'Montserrat', sans-serif;  /* Clean, modern font for body */
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 2rem;
}

body {
  font-family: var(--body-font);
  color: #333;
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-weight: 600;
}

/* Custom Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--accent-color) !important;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-brand img {
  margin-right: 10px;
  filter: drop-shadow(0px 0px 4px rgba(255, 215, 0, 0.6));
}

.nav-link {
  color: var(--light-color) !important;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(45, 27, 54, 0.8), rgba(45, 27, 54, 0.9)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.15), transparent 60%);
}

.hero h1 {
  color: var(--light-color);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn-glimmra {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  position: relative;
  display: inline-block;
  z-index: 10;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn-glimmra:hover {
  background-color: #f8d100;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  color: var(--dark-color);
  text-decoration: none;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: #fff;
}

.about-img {
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(106, 27, 154, 0.2);
  position: relative;
  overflow: hidden;
}

.about-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(106, 27, 154, 0.4), rgba(0, 184, 212, 0.2));
}

.about-content h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

/* Features Section */
.features {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.feature-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(106, 27, 154, 0.1);
  border-bottom: 3px solid var(--secondary-color);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 1.8rem;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Game Section */
.game-section {
  padding: var(--section-padding);
  background-color: var(--dark-color);
  color: var(--light-color);
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 184, 212, 0.2);
}

/* Game Card Container for Index Page */
.game-card-container {
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
  border-radius: 15px;
}

.game-card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(106, 27, 154, 0.25);
}

.game-card-container .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  border: none;
  padding: 15px;
}

.game-card-container .game-iframe-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid rgba(106, 27, 154, 0.1);
}

.game-card-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

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

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

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

.game-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(45, 27, 54, 0.8), transparent);
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--light-color);
}

.game-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-play {
  background: linear-gradient(45deg, var(--accent-color), #ffc107);
  color: var(--dark-color);
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-play:hover {
  background: linear-gradient(45deg, #ffc107, var(--accent-color));
  transform: translateY(-2px);
}

.btn-play i {
  margin-left: 5px;
}

/* Game Full Screen Button */
.game-card-container .btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border: none;
}

.game-card-container .btn-primary:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  color: var(--light-color);
  padding: 4rem 0 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-about {
  margin-bottom: 1.5rem;
}

.footer-links h5 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

/* Age Verification Popup */
.age-verification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.age-verification-content {
  background-color: var(--light-bg);
  border-radius: 15px;
  max-width: 500px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 30px rgba(106, 27, 154, 0.3), 0 0 60px rgba(0, 184, 212, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-verification-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: rgba(106, 27, 154, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-verification-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.age-verification h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.age-verification p {
  margin-bottom: 1.5rem;
  color: #555;
}

.age-verification .btn {
  margin: 0 10px;
  min-width: 120px;
}

.btn-accept {
  background-color: var(--primary-color);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-accept:hover {
  background-color: #5a1683;
  color: white;
}

.btn-decline {
  background-color: #6c757d;
  color: white;
  border: none;
}

.btn-decline:hover {
  background-color: #5a6268;
  color: white;
}

/* Play Page Specific Styles */
.games-container {
  padding: var(--section-padding);
}

.game-iframe-container {
  background-color: var(--dark-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.game-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-selection {
  background-color: var(--light-bg);
  padding: 3rem 0;
}

/* Contact Page */
.contact-section {
  padding: var(--section-padding);
}

.contact-form {
  background-color: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 184, 212, 0.25);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-img {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn-glimmra {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .about-content h2,
  .section-title h2 {
    font-size: 1.8rem;
  }
}