/* Components styling for Norlitha Gaming Website */

/* Buttons */
.cta-button, .play-button, .nav-button, .submit-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  z-index: 1;
}

.cta-button, .submit-button {
  background: linear-gradient(135deg, var(--color-lava-red), var(--color-fire-orange));
  color: var(--color-light);
  border: none;
  box-shadow: 0 0 15px rgba(216, 49, 91, 0.5);
}

.cta-button:hover, .submit-button:hover {
  box-shadow: 0 0 20px rgba(216, 49, 91, 0.7);
  transform: translateY(-2px);
}

.cta-button::before, .submit-button::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.7s ease;
  z-index: -1;
}

.cta-button:hover::before, .submit-button:hover::before {
  left: 100%;
}

.play-button {
  background: linear-gradient(135deg, var(--color-bright-purple), var(--color-neon-pink));
  color: var(--color-light);
  border: none;
  padding: 0.6rem 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.play-button:hover {
  box-shadow: 0 0 15px rgba(252, 43, 225, 0.7);
  transform: translateY(0);
}

.nav-button {
  background: linear-gradient(135deg, var(--color-bright-purple), var(--color-neon-pink));
  color: var(--color-light);
  padding: 0.5rem 1.2rem;
  border: none;
}

.nav-button:hover {
  box-shadow: 0 0 10px rgba(252, 43, 225, 0.7);
}

/* Cards */
.game-card {
  background: rgba(58, 14, 64, 0.5);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.game-card h3 {
  padding: 1.2rem;
  text-align: center;
  font-size: 1.3rem;
  background: rgba(42, 10, 41, 0.8);
}

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

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

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

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 10, 41, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-card:hover .play-button {
  opacity: 1;
  transform: translateY(0);
}

.feature-card {
  background: rgba(58, 14, 64, 0.3);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--color-lava-red), var(--color-neon-pink));
  transition: height 0.3s ease;
  z-index: 1;
}

.feature-card:hover::before {
  height: 6px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 3, 9, 0.3);
  color: var(--color-light);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-neon-pink);
  box-shadow: 0 0 0 2px rgba(252, 43, 225, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Custom Logo Styling */
.logo {
  position: relative;
}

.logo h1 {
  background: linear-gradient(135deg, var(--color-fire-orange), var(--color-lava-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.logo-embers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.logo-embers span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-ember-yellow);
  border-radius: 50%;
  animation-name: float;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  opacity: 0;
}

.logo-embers span:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.logo-embers span:nth-child(2) {
  top: 50%;
  left: 50%;
  animation-delay: 1s;
}

.logo-embers span:nth-child(3) {
  top: 30%;
  left: 80%;
  animation-delay: 2s;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 3, 9, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, var(--color-dark-purple), var(--color-purple));
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 30px rgba(252, 43, 225, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content h3 {
  margin-bottom: 1rem;
  color: var(--color-ember-yellow);
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-button:hover {
  color: var(--color-neon-pink);
  transform: rotate(90deg);
}

/* Iframe Container */
.game-iframe-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 2rem 0;
}

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

/* Media Queries */
@media (max-width: 768px) {
  .cta-button, .play-button, .nav-button, .submit-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .game-card h3 {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cta-button, .play-button, .nav-button, .submit-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}