/**
 * EduCodeVault - Main Style Sheet
 * Core styling for header, footer, generator section, and layout
 */

:root {
  --primary-color: #ff9803;
  --secondary-color: #333;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --border-color: #ddd;
  --success-color: #18b957;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

/* Main Background */
.main-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -2;
  pointer-events: none;
}

.main-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Header / Navigation */
.site-header {
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.branding-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.branding-wrapper .label {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
}

.branding-wrapper:hover .label {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

/* Hero Section */
.hero-section {
  padding: 60px 20px;
  background: linear-gradient(
    180deg,
    rgba(102, 126, 234, 0.9) 0%,
    rgba(118, 75, 162, 0.9) 100%
  );
  color: white;
  text-align: center;
  position: relative;
}

.after-header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.95;
}

/* Status Widget */
.generator-status {
  margin-top: 40px;
}

.generator-status-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.status-item-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.status-label {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.8;
}

.status-dynamic {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

/* Main Content */
.main-content {
  flex: 1;
  background-color: white;
  padding: 60px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Generator Section */
.generator-section {
  margin-bottom: 60px;
}

.generator-wrapper {
  background-color: var(--light-bg);
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.generator-content {
  display: flex;
  justify-content: center;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo-img-gen {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 30px;
  border-radius: 10px;
}

.form-wrapper .label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

/* Input Wrapper */
.input-wrapper {
  margin-bottom: 25px;
  text-align: left;
}

.input-wrapper label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.input-username {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.input-username:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 152, 3, 0.1);
}

/* Button */
.get-code-btn {
  display: inline-block;
  width: 100%;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary-color), #ff7502);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 3, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.get-code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 3, 0.4);
}

.get-code-btn:active {
  transform: translateY(0);
}

/* Animation Classes */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

.animation-delay-800 {
  animation-delay: 0.8s;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Footer */
.site-footer {
  background-color: #2c2c2c;
  color: #ccc;
  padding: 60px 20px 30px;
  margin-top: 60px;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  margin-bottom: 40px;
}

.footer-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  font-size: 14px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 30px;
  text-align: center;
}

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-copyright {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.footer-disclaimer {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

/* Utility Classes */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .main-bg,
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    background-color: white;
  }
}
