/**
 * @file immersive.css
 * @description Immersive word view overlay - fullscreen word display with details
 *
 * @requires base.css (CSS variables)
 * @usedBy index.php (#immersive-overlay)
 * @usedBy js/components/immersive.js (showImmersiveWord)
 *
 * @status COMPLETE
 */

/* ==================== IMMERSIVE OVERLAY ==================== */
.immersive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-light-1), var(--bg-light-2));
    z-index: 2000;
    display: none;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

body.dark-mode .immersive-overlay {
    background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
}

.immersive-overlay.active {
    display: flex;
}

/* Header */
.immersive-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    padding: 8px 16px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    color: inherit;
    transition: background 0.2s ease;
}

body.dark-mode .back-btn {
    background: rgba(255,255,255,0.1);
}

.back-btn:hover {
    background: rgba(0,0,0,0.1);
}

/* Content Area */
.immersive-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
}

.immersive-card {
    text-align: center;
    max-width: 500px;
}

.immersive-word {
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.immersive-phonetic {
    font-size: 1rem;
    opacity: 0.5;
    font-style: italic;
    margin-bottom: 20px;
}

.immersive-meaning {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Details Tags */
.immersive-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.detail-tag {
    padding: 6px 12px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Action Buttons */
.immersive-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    color: inherit;
    transition: all 0.2s ease;
}

body.dark-mode .action-btn {
    border-color: rgba(255,255,255,0.1);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Difficulty Selector */
.difficulty-selector {
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==================== FIND BCE EXPANDER ==================== */
.bce-expander {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 12px;
    padding: 16px;
    background: var(--card-light);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.dark-mode .bce-expander {
    background: var(--card-dark);
}

.bce-options {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

.bce-option {
    padding: 8px 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    color: inherit;
}

body.dark-mode .bce-option {
    border-color: rgba(255,255,255,0.1);
}

.bce-option:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.bce-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bce-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: stretch;
}

.bce-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--card-light);
    color: inherit;
    transition: all 0.2s ease;
}

body.dark-mode .bce-input {
    background: var(--card-dark);
    border-color: rgba(255,255,255,0.1);
}

.bce-input:focus {
    outline: none;
    border-color: var(--primary);
}

.bce-search-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bce-search-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.bce-results {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}

body.dark-mode .bce-results {
    background: rgba(255,255,255,0.02);
}

.bce-word-chip {
    padding: 6px 12px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bce-word-chip:hover {
    background: var(--primary);
    color: white;
}
