/* --- File: css/style.css --- */
/* --- Start Content --- */

/* 
==============================================
  1. FONT DEFINITIONS (SELF-HOSTED)
============================================== 
*/
@font-face {
  font-family: 'Inter';
  /* Path goes up from 'css' folder, then into 'fonts' folder */
  src: url('../fonts/inter-v13-latin-regular.woff2') format('woff2'); 
  font-weight: 400; /* normal */
  font-style: normal;
  font-display: swap; /* Improves perceived performance */
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v13-latin-700.woff2') format('woff2');
  font-weight: 700; /* bold */
  font-style: normal;
  font-display: swap;
}

/* 
==============================================
  2. INTERACTIVE SWIPE DEMO STYLES
============================================== 
*/

.interactive-card-demo-container {
  position: relative;
  width: 300px;
  height: 180px;
  margin: 2rem auto;
  cursor: grab;
}

.demo-swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem; /* 12px */
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb; /* border-gray-200 */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Important for rounded corners */
  user-select: none;
  -webkit-user-select: none;
}

.demo-swipe-card:active {
  cursor: grabbing;
}

.lang-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  transition: background-color 0.2s ease;
}

.lang-section.target-lang {
  border-top: 1px solid #f3f4f6; /* border-gray-100 */
}

.word {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
}
.pronunciation {
  font-size: 0.875rem; /* 14px */
  color: #4b5563; /* text-gray-600 */
  margin-top: 0.25rem;
}

/* Swipe Indicators (Checkmark and X) */
.swipe-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem; /* 64px */
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.swipe-indicator.keep {
  color: #10b981; /* Equivalent to Tailwind's green-500 */
}

.swipe-indicator.ignore {
  color: #ef4444; /* Equivalent to Tailwind's red-500 */
}

/* Logic for showing indicators on swipe */
.demo-swipe-card.is-revealing.show-indicator-keep .swipe-indicator.keep {
  opacity: 0.2;
}
.demo-swipe-card.is-revealing.show-indicator-ignore .swipe-indicator.ignore {
  opacity: 0.2;
}

/* 
==============================================
  3. UTILITY AND FIXES
============================================== 
*/

/* Prevents "flash of unstyled content" for AOS animations before the JS library loads */
body:not(.landing-page-loaded) [data-aos] {
  opacity: 0 !important;
  transform: none !important;
}

/* Style for the "Back to Top" button */
.go-up-button {
  transition: color 0.2s ease-in-out;
}