/**
 * @file student.css
 * @description Student mode screen - circular word card, orbit animation, settings bar
 *
 * @requires base.css (CSS variables)
 * @requires components.css (setting-btn)
 * @usedBy index.php (#student-screen)
 * @usedBy js/screens/student.js (showNextWord, auto-advance timer)
 *
 * @status COMPLETE
 */

/* ==================== STUDENT SCREEN ==================== */
#student-screen {
    flex-direction: column;
    padding: 15px;
}

/* Settings Bar */
.student-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: var(--card-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body.dark-mode .student-settings {
    background: var(--card-dark);
}

.setting-group {
    text-align: center;
    min-width: 0;
}

.setting-label {
    display: none; /* Hide labels to save space */
}

.setting-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Override component button styles for settings bar */
.student-settings .setting-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ==================== WORD DISPLAY AREA ==================== */
.word-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    cursor: pointer;
}

/* Orbit Animation Container */
.orbit-container {
    position: absolute;
    width: min(75vw, 380px);
    height: min(75vw, 380px);
    border: 1px solid rgba(100,100,100,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    --orbit-radius: min(37.5vw, 190px);
    transform: rotate(90deg) translateX(var(--orbit-radius)) rotate(-90deg);
}

.orbit-dot.animating {
    animation: orbit var(--orbit-duration, 6s) linear forwards;
}

@keyframes orbit {
    from { transform: rotate(90deg) translateX(var(--orbit-radius)) rotate(-90deg); }
    to { transform: rotate(450deg) translateX(var(--orbit-radius)) rotate(-450deg); }
}

/* ==================== WORD CARD ==================== */
.word-card {
    text-align: center;
    z-index: 10;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.word-card:hover {
    transform: scale(1.02);
}

/* Memory Button on Word Card */
.word-card-memory-btn {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(67, 97, 238, 0.3);
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
    z-index: 20;
}

.word-card-memory-btn:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

body.dark-mode .word-card-memory-btn {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(76, 201, 240, 0.3);
}

body.dark-mode .word-card-memory-btn:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(76, 201, 240, 0.25);
}

/* Word Text Elements */
.word-text {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-smooth);
}

.word-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.word-phonetic {
    font-size: 1rem;
    opacity: 0;
    margin-bottom: 15px;
    font-style: italic;
    transform: translateY(15px);
    transition: all 0.5s var(--ease-smooth) 0.1s;
}

.word-phonetic.visible {
    opacity: 0.5;
    transform: translateY(0);
}

.word-meaning {
    font-size: 1rem;
    max-width: 450px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s var(--ease-smooth) 0.15s;
}

.word-meaning.visible {
    opacity: 0.8;
    transform: translateY(0);
}

.word-meta {
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.word-meta.visible {
    opacity: 0.5;
}

.tap-hint {
    position: absolute;
    bottom: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #333;
}

body.dark-mode .tap-hint {
    color: #ddd;
}

/* ==================== TIME DISPLAY ==================== */
.time-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 100;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.time-display.visible {
    opacity: 1;
}

body.dark-mode .time-display {
    color: #ddd;
}
