@charset "UTF-8";

/**
 * VocabSnap - Project Custom CSS
 * 
 * STRICTLY uses ak-systems-css CDN variables.
 * NO custom colors defined here.
 * ONLY for layout components not present in the framework.
 */

/* -------------------------------------------------------------------------- */
/* Utilities                                                                  */
/* -------------------------------------------------------------------------- */

.ak-hidden {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Components (Missing in Framework)                                          */
/* -------------------------------------------------------------------------- */

/* Flag Icon */
.ak-flag-icon {
  font-size: 1.5em;
  border-radius: 2px;
}

/* Flashcard Component (3D Flip) */
.ak-flashcard-container {
  perspective: 1000px;
  width: 100%;
  max-width: 42rem; /* max-w-2xl */
  margin-left: auto;
  margin-right: auto;
  height: 24rem; /* h-96 */
}

.ak-flashcard {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.ak-flashcard.ak-flipped {
  transform: rotateY(180deg);
}

.ak-flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transform-style: preserve-3d;
}

.ak-flashcard-front,
.ak-flashcard-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--ak-radius-xl);
  box-shadow: var(--ak-shadow-lg);
  background-color: var(--ak-color-surface);
  border: 1px solid var(--ak-color-border);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.ak-flashcard-back {
  transform: rotateY(180deg);
}

/* Spinner */
.ak-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--ak-color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: ak-spin 1s linear infinite;
}

@keyframes ak-spin {
  to { transform: rotate(360deg); }
}

/* Loading Overlay */
.ak-loading {
  position: fixed;
  inset: 0;
  background-color: rgba(var(--ak-color-bg), 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

/* Fullscreen Modal */
.ak-fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--ak-color-bg);
  display: none;
  flex-direction: column;
}

.ak-fullscreen-modal.ak-modal-active {
  display: flex;
}

.ak-fullscreen-modal .ak-modal-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.ak-fullscreen-flashcard {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 400px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.ak-fullscreen-flashcard.ak-flipped {
  transform: rotateY(180deg);
}

.ak-fullscreen-card-front,
.ak-fullscreen-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--ak-color-surface);
  border-radius: var(--ak-radius-xl);
  box-shadow: var(--ak-shadow-lg);
  padding: 2rem;
  text-align: center;
}

.ak-fullscreen-card-back {
  transform: rotateY(180deg);
}

.ak-fullscreen-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ak-fullscreen-card-word,
.ak-fullscreen-card-translation {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ak-fullscreen-card-pronunciation,
.ak-fullscreen-card-example {
  font-size: 1.25rem;
  color: var(--ak-color-muted);
}

.ak-fullscreen-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ak-fullscreen-card-footer {
  margin-top: auto;
  color: var(--ak-color-muted);
  font-size: 0.875rem;
}

/* Swipe Indicators */
.ak-swipe-indicators {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 10;
}

.ak-swipe-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  background-color: rgba(var(--ak-color-surface), 0.8);
  padding: 0.5rem 1rem;
  border-radius: var(--ak-radius-full);
  backdrop-filter: blur(4px);
}

.ak-fullscreen-modal:hover .ak-swipe-indicator {
  opacity: 1;
}

.ak-modal-bottom-controls {
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background-color: var(--ak-color-surface);
  border-top: 1px solid var(--ak-color-border);
}

/* Fullscreen Modal Header extras */
.ak-fullscreen-modal .ak-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--ak-color-surface);
  border-bottom: 1px solid var(--ak-color-border);
}

.ak-modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ak-modal-counter {
  font-size: 0.875rem;
  color: var(--ak-color-muted);
  margin-bottom: 0.25rem;
}

.ak-modal-progress {
  width: 100%;
  max-width: 200px;
  height: 4px;
  background-color: var(--ak-color-border);
  border-radius: var(--ak-radius-full);
  overflow: hidden;
}

.ak-modal-progress-fill {
  height: 100%;
  background-color: var(--ak-color-primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* Navigation & Mobile Menu                                                   */
/* (Replaced by ak-drawer framework component)                                */
/* -------------------------------------------------------------------------- */

