/* ═══════════════════════════════════════════════════════════════
   MY STATS - TYPEWRITER THEME STYLESHEET
   Matching the app's vintage typewriter aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────── */
/* GENERAL STYLES */
/* ─────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: #FAF8F5 !important; /* Aged cream paper */
  color: #1C1C1C; /* Deep black ink */
  font-family: 'Courier Prime', 'Courier New', monospace;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  position: relative;
}

/* Paper texture overlay */
.paper-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,.02) 2px,
      rgba(0,0,0,.02) 3px
    );
  pointer-events: none;
  z-index: 1;
}

.page {
  background: transparent !important;
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────────────────────── */
/* SIDEBAR NAVIGATION */
/* ─────────────────────────────────────────────────────────────── */

#sidebar {
  position: fixed;
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
  background: #FFFFFF;
  border: 2px solid #1C1C1C;
  padding: 0;
  z-index: 1000;
  width: 220px;
  transition: left 0.3s ease-in-out;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

#sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 20px;
  height: 100%;
  background: transparent;
}

#sidebar:hover {
  left: 0;
}

.sidebar-border {
  border: 1px solid #1C1C1C;
  margin: 8px;
  padding: 16px 12px;
}

.sidebar-header {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 16px;
  color: #1C1C1C;
  border-bottom: 1px solid #1C1C1C;
  padding-bottom: 8px;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar ul li {
  margin: 8px 0;
}

#sidebar ul li a {
  text-decoration: none;
  color: #1C1C1C;
  font-size: 12px;
  letter-spacing: 1px;
  display: block;
  padding: 8px 12px;
  transition: all 0.2s;
  font-weight: normal;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
  background: #1C1C1C;
  color: #FFFFFF;
  margin-left: 4px;
}

/* ─────────────────────────────────────────────────────────────── */
/* PAGE SECTIONS */
/* ─────────────────────────────────────────────────────────────── */

.page {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

/* ─────────────────────────────────────────────────────────────── */
/* TYPOGRAPHY */
/* ─────────────────────────────────────────────────────────────── */

.typewriter-title {
  margin-bottom: 30px;
}

.title-underline {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 8px;
  color: #1C1C1C;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.subtitle {
  font-size: 14px;
  letter-spacing: 2px;
  color: #1C1C1C;
}

.tagline {
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.8;
  color: #7A7A7A;
  margin: 30px 0;
  text-transform: uppercase;
}

.section-header {
  margin: 40px 0;
}

.header-line {
  font-size: 12px;
  letter-spacing: 1px;
  color: #1C1C1C;
  margin: 8px 0;
}

.section-header h1 {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #1C1C1C;
  margin: 12px 0;
}

.intro-text {
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.8;
  color: #1C1C1C;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────── */
/* HOME PAGE */
/* ─────────────────────────────────────────────────────────────── */

#page1 .home-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

#page1 .text-content {
  flex: 1;
  text-align: left;
}

#page1 .app-preview-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typewriter-box {
  background: #FFFFFF;
  border: 2px solid #1C1C1C;
  padding: 0;
  width: 100%;
  max-width: 400px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
}

.box-header {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  padding: 12px;
  border-bottom: 2px solid #1C1C1C;
  color: #1C1C1C;
}

.preview-features {
  padding: 30px 20px;
}

.feature-line {
  font-size: 13px;
  letter-spacing: 1px;
  color: #1C1C1C;
  margin: 12px 0;
  text-align: left;
}

.box-footer {
  font-size: 16px;
  letter-spacing: 4px;
  text-align: center;
  padding: 12px;
  border-top: 2px solid #1C1C1C;
  color: #7A7A7A;
}

/* ─────────────────────────────────────────────────────────────── */
/* BUTTONS */
/* ─────────────────────────────────────────────────────────────── */

.button-row {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.typewriter-button {
  display: inline-block;
  padding: 14px 28px;
  background-color: #1C1C1C;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  border: 2px solid #1C1C1C;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  text-transform: uppercase;
}

.typewriter-button:hover {
  background-color: #FFFFFF;
  color: #1C1C1C;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.typewriter-button.secondary {
  background-color: #FFFFFF;
  color: #1C1C1C;
}

.typewriter-button.secondary:hover {
  background-color: #1C1C1C;
  color: #FFFFFF;
}

/* ─────────────────────────────────────────────────────────────── */
/* CONTENT CONTAINER */
/* ─────────────────────────────────────────────────────────────── */

.page .content {
  max-width: 1000px;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────── */
/* FEATURES GRID */
/* ─────────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.typewriter-card {
  background: #FFFFFF;
  border: 2px solid #1C1C1C;
  padding: 0;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.typewriter-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

.card-header {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 12px 16px;
  border-bottom: 2px solid #1C1C1C;
  color: #1C1C1C;
}

.card-body {
  font-size: 12px;
  letter-spacing: 0.3px;
  line-height: 1.7;
  padding: 20px 16px;
  color: #1C1C1C;
}

/* ─────────────────────────────────────────────────────────────── */
/* PRIVACY DOCUMENT */
/* ─────────────────────────────────────────────────────────────── */

.typewriter-document {
  background: #FFFFFF;
  border: 2px solid #1C1C1C;
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
}

.document-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #1C1C1C;
  margin-bottom: 12px;
  border-bottom: 1px solid #D4D4D4;
  padding-bottom: 8px;
}

.document-section p {
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1.8;
  color: #1C1C1C;
}

.document-signature {
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  color: #7A7A7A;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #D4D4D4;
  line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────────── */
/* FAQ SECTION */
/* ─────────────────────────────────────────────────────────────── */

.faq-section {
  margin: 40px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-header {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 30px;
  color: #1C1C1C;
  padding-bottom: 12px;
  border-bottom: 2px solid #1C1C1C;
}

.faq-item {
  background: #FFFFFF;
  border: 2px solid #1C1C1C;
  padding: 20px;
  margin-bottom: 16px;
  text-align: left;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
}

.faq-question {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #1C1C1C;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 12px;
  letter-spacing: 0.3px;
  line-height: 1.7;
  color: #1C1C1C;
}

/* ─────────────────────────────────────────────────────────────── */
/* MODAL */
/* ─────────────────────────────────────────────────────────────── */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #FFFFFF;
  margin: 10% auto;
  padding: 0;
  border: 2px solid #1C1C1C;
  width: 90%;
  max-width: 450px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
  animation: modalSlide 0.3s ease-out;
  position: relative;
}

@keyframes modalSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-body {
  padding: 30px 20px;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.8;
  color: #1C1C1C;
  text-align: center;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  color: #1C1C1C;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover,
.close:focus {
  color: #C41E3A;
}

/* ─────────────────────────────────────────────────────────────── */
/* RESPONSIVE DESIGN */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  #page1 .home-container {
    flex-direction: column;
    gap: 40px;
  }

  #page1 .text-content {
    text-align: center;
  }

  .title-underline {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .tagline {
    font-size: 14px;
  }

  .section-header h1 {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .intro-text {
    font-size: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .typewriter-document {
    padding: 24px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .typewriter-button {
    width: 100%;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/* PRINT STYLES (for authenticity) */
/* ─────────────────────────────────────────────────────────────── */

@media print {
  body {
    background: white;
  }
  
  .paper-texture,
  #sidebar,
  .typewriter-button,
  .modal {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   END OF STYLESHEET
   ═══════════════════════════════════════════════════════════════ */
