/* ForeverCrimes - 19 Crimes Aesthetic */

:root {
  --primary-dark: #684E32;        /* Coffee - main dark background */
  --secondary-dark: #5D3A00;      /* Sepia - secondary background */
  --accent-red: #F98948;          /* Atomic tangerine - primary accent */
  --accent-gold: #9B8816;         /* Olive - gold replacement */
  --accent-light: #F9EA9A;        /* Pear - light accent */
  --text-light: #ffffff;
  --text-muted: #F9EA9A;          /* Pear - muted text */
  --border-color: #9B8816;        /* Olive - borders */
  --bg-dark: #5D3A00;             /* Sepia - dark elements */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: var(--primary-dark);
  background-image: 
    linear-gradient(rgba(104, 78, 50, 0.85), rgba(104, 78, 50, 0.85)),
    url('../images/forevercrimes.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
}

/* Loading/Cloak */
[xmp-cloak] {
  display: none !important;
}

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

/* Header */
.header {
  text-align: center;
  padding: 40px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
  background: transparent;
}

.header h1 {
  font-size: 3rem;
  font-weight: normal;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 8px;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  font-style: italic;
}

.header .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 3px;
  font-weight: 300;
}

.greeting {
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-bottom: 20px;
  font-weight: bold;
}

/* Content Box */
.content-box {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Buttons */
.btn-primary {
  background: var(--accent-red);
  color: var(--text-light);
  border: 2px solid var(--accent-gold);
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(249, 137, 72, 0.4);
  font-family: Georgia, serif;
}

.btn-primary:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border-color);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-family: Georgia, serif;
}

.btn-secondary:hover {
  background: var(--border-color);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Photo Upload Section */
.photo-upload {
  text-align: center;
  padding: 40px;
  border: 2px dashed var(--border-color);
  border-radius: 4px;
  margin: 30px 0;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.photo-upload:hover {
  border-color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.4);
}

.photo-preview {
  max-width: 400px;
  width: 100%;
  margin: 20px auto;
  border: 4px solid var(--accent-gold);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

.photo-preview img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: sepia(20%);
}

/* Crime Grid */
.crime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.crime-card {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.crime-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.3);
}

.crime-card.selected {
  border-color: var(--accent-red);
  background: rgba(249, 137, 72, 0.2);
  box-shadow: 0 0 20px rgba(249, 137, 72, 0.5);
}

.crime-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-red);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  border: 2px solid var(--accent-gold);
}

.crime-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent-gold);
  margin-bottom: 12px;
  padding-right: 50px;
}

.crime-summary {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Results Section */
.results-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 30px 0;
}

@media (max-width: 968px) {
  .results-container {
    grid-template-columns: 1fr;
  }
}

.portrait-section {
  text-align: center;
}

.generated-portrait {
  width: 100%;
  max-width: 500px;
  border: 6px solid var(--accent-gold);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9);
  filter: sepia(40%) contrast(1.1);
}

.crime-details-section h2 {
  color: var(--accent-red);
  font-size: 2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 10px;
}

.crime-details-section h3 {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.crime-details-section p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 60px;
}

.spinner {
  border: 6px solid var(--border-color);
  border-top: 6px solid var(--accent-red);
  border-right: 6px solid var(--accent-gold);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1.2s linear infinite;
  margin: 0 auto 30px;
  box-shadow: 0 0 20px rgba(249, 137, 72, 0.3);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.3rem;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 15px;
}

/* Value Proposition Display */
.value-proposition {
  font-size: 1.2rem;
  color: var(--accent-light);
  font-style: italic;
  margin-top: 30px;
  padding: 25px;
  background: rgba(155, 136, 22, 0.15);
  border-left: 4px solid var(--accent-gold);
  border-radius: 4px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.6;
  transition: opacity 0.5s ease-in-out;
}

.value-proposition.fade-out {
  opacity: 0;
}

.value-proposition.fade-in {
  opacity: 1;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Confirmation Page */
.confirmation-box {
  text-align: center;
  padding: 60px 40px;
}

.confirmation-icon {
  font-size: 5rem;
  color: var(--accent-gold);
  margin-bottom: 30px;
}

.confirmation-box h2 {
  font-size: 2.5rem;
  color: var(--accent-red);
  margin-bottom: 25px;
}

.confirmation-box p {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.warning-text {
  color: var(--accent-red);
  font-weight: bold;
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 30px;
}

/* Form Elements */
input[type="file"] {
  display: none;
}

.file-upload-label {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent-red);
  color: var(--text-light);
  border: 2px solid var(--accent-gold);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  font-family: Georgia, serif;
}

.file-upload-label:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-red);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

/* Error Messages */
.error-message {
  background: rgba(249, 137, 72, 0.3);
  border: 2px solid var(--accent-red);
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
  color: var(--text-light);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .header .subtitle {
    font-size: 1rem;
  }
  
  .content-box {
    padding: 20px;
  }
  
  .crime-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }

  /* Confirmation Page Mobile Styles */
  .confirmation-box {
    padding: 30px 20px;
  }

  .confirmation-box h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .confirmation-box p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .confirmation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
  }

  /* Recorded Crime Section */
  .recorded-crime-section {
    padding: 20px !important;
    margin-top: 30px !important;
  }

  .recorded-crime-section h3 {
    font-size: 1.3rem !important;
  }

  .recorded-crime-section h4 {
    font-size: 1.1rem !important;
  }

  .recorded-crime-section p {
    font-size: 0.95rem !important;
  }

  /* Wanted Poster Section */
  .wanted-poster-section {
    padding: 25px 15px !important;
    margin-top: 30px !important;
  }

  .wanted-poster-title {
    font-size: 1.5rem !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
  }

  .wanted-poster-section .row {
    margin: 0 !important;
  }

  .wanted-poster-section .col-12 {
    padding: 10px 0 !important;
  }

  .wanted-poster-section .col-12 > div {
    padding: 15px 5px !important;
  }

  .wanted-poster-section p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
  }

  .wanted-poster-section ul {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    padding-left: 20px !important;
  }

  .wanted-poster-section ul li {
    margin-bottom: 8px;
  }

  .wanted-poster-section .btn {
    font-size: 1rem !important;
    padding: 12px !important;
  }

  /* Poster Preview on Mobile */
  .wanted-poster-section .order-1 {
    margin-bottom: 20px;
  }

  .wanted-poster-section .order-1 > div {
    padding: 10px 0 !important;
  }

  .wanted-poster-section .order-1 img {
    max-width: 100%;
    height: auto;
  }

  /* Event Details Section */
  .event-details-section {
    padding: 20px !important;
    margin-top: 30px !important;
  }

  .event-details-section h3 {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
  }

  .event-details-section p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }

  /* Additional Message Box */
  .confirmation-box > div[style*="margin-top: 40px"] {
    margin-top: 25px !important;
    padding: 20px !important;
  }

  .confirmation-box > div[style*="margin-top: 40px"] p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Container padding on mobile */
  .container {
    padding: 15px;
  }

  /* Poster preview container on mobile */
  .wanted-poster-section .order-1 > div > div[style*="min-height"] {
    min-height: 300px !important;
    padding: 15px !important;
  }

  /* Warning text */
  .warning-text {
    font-size: 1.1rem !important;
    margin-top: 20px !important;
  }
}

/* Distressed texture overlay */
.distressed-overlay {
  display: none;
}

/* Logo */
.logo-container {
  text-align: center;
  padding: 30px 20px 20px;
}

.logo-container img {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .logo-container img {
    max-width: 280px;
  }
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--border-color);
  margin-top: 60px;
  padding: 40px 20px 30px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-style: italic;
}

.footer-description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-ai-notice {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(155, 136, 22, 0.3);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 15px 20px;
  }
  
  .footer-logo img {
    max-width: 140px;
  }
  
  .footer-description {
    font-size: 0.95rem;
  }
}

/* Camera Video - Flip horizontally for natural mirror view */
#camera-video {
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
}

/* Wine Choice Section */
.wine-choice-section {
  margin-top: 30px;
}

.wine-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.wine-option:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold) !important;
  box-shadow: 0 6px 16px rgba(155, 136, 22, 0.4);
}

.wine-option.selected {
  border-color: var(--accent-gold) !important;
  background: rgba(155, 136, 22, 0.3) !important;
  box-shadow: 0 0 20px rgba(155, 136, 22, 0.6);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .wine-choice-section {
    padding: 20px !important;
  }
  
  .wine-option {
    min-width: 120px !important;
    padding: 15px 25px !important;
  }
}
