/* Study Guide - Japanese Brutalist Design */

/* Base card styles */
.sr-card {
  display: none; /* Hidden by default, shown by JS */
  border: 2px solid #000;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  background-color: #f7f4ef;
  max-width: 800px;
}

.sr-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background-color: transparent;
  border: 1px solid #000;
  z-index: -1;
}

.sr-active {
  display: block;
}

/* Question styling */
.sr-question {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  border-bottom: 4px solid #d13f33; /* Vermillion red accent */
  padding-bottom: 0.5rem;
  font-family: 'Helvetica Neue', sans-serif;
}

/* Answer styling - hidden initially */
.sr-answer {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #fffefc;
  border-left: 8px solid #d13f33; /* Vermillion red accent */
  font-family: monospace;
}

.sr-answer-visible .sr-answer {
  display: block;
}

/* Study interface */
.study-interface {
  margin: 3rem 0;
  padding: 2rem;
  border: 2px solid #000;
  background-color: #f0f0f0;
  max-width: 800px;
}

/* Controls */
.sr-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.sr-button {
  background-color: #fff;
  border: 2px solid #000;
  padding: 0.75rem 1.25rem;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  min-width: 100px;
  text-align: center;
}

.sr-button:hover {
  top: -2px;
  left: -2px;
  box-shadow: 2px 2px 0 #000;
}

.sr-button:active {
  top: 0;
  left: 0;
  box-shadow: none;
}

.sr-button-primary {
  background-color: #d13f33; /* Vermillion red */
  color: white;
}

.sr-button-easy {
  background-color: #e8f0e5;
}

.sr-button-medium {
  background-color: #f4eed9;
}

.sr-button-hard {
  background-color: #f8e8e8;
}

/* Progress indicators */
.sr-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #000;
  font-family: monospace;
}

/* Card counter */
.sr-counter {
  font-size: 0.9rem;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #000;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-family: monospace;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .sr-controls {
    flex-direction: column;
  }

  .sr-button {
    width: 100%;
  }
}
