/* Arda Home System Styles */

body {
  margin: 0;
  font-family: 'Poppins', Arial, 'Segoe UI', sans-serif;
  color: white;
  background: url('../../background.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  cursor: url('../../cursor-gem.cur') 0 0, auto;
  overflow: hidden;
}

/* Container wrapper for border marquee */
.container-wrapper {
  position: relative;
  display: inline-block;
}

/* Text reveal container - positioned above the card */
.text-reveal-container {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

/* Text snippet styling */
.text-snippet {
  font-family: 'Noto Sans Mono', 'Courier New', monospace;
  font-size: 15px;
  font-weight: 500;
  color: #e5a00d;
  text-shadow: 0 0 4px rgba(229, 160, 13, 0.6);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: inline-block;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animation states */
.text-snippet.fade-in {
  opacity: 1;
}

.text-snippet.fade-out {
  opacity: 0;
}

.container {
  text-align: center;
  background-color: rgba(10, 10, 10, 0.82);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(229, 160, 13, 0.35);
  box-shadow: 0 0 0 1px rgba(229,160,13,0.15) inset, 0 12px 30px rgba(0,0,0,0.45), 0 0 24px rgba(229,160,13,0.15);
  max-width: 320px;
  width: 90%;
  z-index: 3;
}

h1 {
  font-size: 2.25em;
  margin-bottom: 10px;
  color: #ffffff;
}

p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #e9e9e9;
}

/* Button styles - shared between main buttons and modal buttons */
.btn {
  display: inline-block;
  margin: 8px auto;
  padding: 12px 24px;
  font-size: 1em;
  background: linear-gradient(180deg, #e5a00d 0%, #bb7a00 100%);
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 180px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease, color 0.2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.btn:hover {
  background: linear-gradient(180deg, #ffc24a 0%, #d08600 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.45), 0 0 14px rgba(255, 185, 42, 0.7);
  color: #070707;
}

.btn.disabled {
  background-color: #3a3a3a;
  color: #bdbdbd;
  pointer-events: none;
  cursor: not-allowed;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 185, 42, 0.45), 0 0 14px rgba(255, 185, 42, 0.65);
}


/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  position: relative;
  background: radial-gradient(1200px 300px at 50% -10%, rgba(229,160,13,0.08), transparent 60%), #121212;
  margin: 10% auto;
  padding: 22px 22px 18px;
  border-radius: 14px;
  width: 80%;
  max-width: 420px;
  text-align: center;
  color: white;
  border: 1px solid rgba(229,160,13,0.35);
  box-shadow: 0 0 0 1px rgba(229,160,13,0.2) inset, 0 0 22px rgba(229,160,13,0.25), 0 24px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: conic-gradient(from 180deg, rgba(229,160,13,0.0), rgba(229,160,13,0.6), rgba(229,160,13,0.0) 30%);
  filter: blur(12px);
  z-index: -1;
  animation: borderGlow 5s linear infinite;
}

@keyframes borderGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-content a {
  display: block;
  margin: 10px auto;
  width: 180px;
  /* Inherit all button styles from .btn */
  padding: 12px 24px;
  font-size: 1em;
  background: linear-gradient(180deg, #e5a00d 0%, #bb7a00 100%);
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease, color 0.2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.modal-content a:hover {
  background: linear-gradient(180deg, #ffc24a 0%, #d08600 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.45), 0 0 14px rgba(255, 185, 42, 0.7);
  color: #070707;
}

.close-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #262626;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.45), 0 0 14px rgba(229, 160, 13, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  h1 { font-size: 1.8em; }
  p { font-size: 1em; }
  .container { padding: 22px; max-width: 360px; }
  .btn, .modal-content a { width: 100%; }
  
  /* Adjust text reveal for mobile */
  .text-snippet {
    font-size: 13px;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn, .modal-content a, .close-btn { transition: none; }
  .modal-content::before { display: none; }
  .text-snippet { 
    transition: none; 
    opacity: 1; 
  }
}
