/* ═══════════════════════════════════════════════════════════
   FLASHCARDS CSS
   ═══════════════════════════════════════════════════════════ */

.fc-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* Dashboard */
.fc-cert-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--bs-primary);
}
.fc-cert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

/* Study View */
.fc-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.fc-stats {
    display: flex;
    gap: 15px;
    font-weight: 600;
}
.fc-stat-new { color: var(--bs-primary); }
.fc-stat-learn { color: var(--bs-warning); }
.fc-stat-review { color: var(--bs-success); }

/* Flip Card 3D Setup */
.fc-card-scene {
    width: 100%;
    height: 350px;
    perspective: 1000px;
    margin-bottom: 30px;
}

.fc-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.fc-card.is-flipped {
    transform: rotateX(180deg);
}

.fc-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

body.dark-mode .fc-card-face {
    background: #2a2a2a;
    border-color: #444;
}

.fc-card-front {
    font-size: 1.5rem;
    font-weight: 500;
}

.fc-card-back {
    transform: rotateX(180deg);
    font-size: 1.25rem;
    color: var(--bs-secondary);
}

body.dark-mode .fc-card-back {
    color: #ccc;
}

.fc-card-domain {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 0.8rem;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Controls */
.fc-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fc-controls.show {
    opacity: 1;
    pointer-events: auto;
}

.fc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 10px 15px;
}
.fc-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.fc-btn-again { background-color: var(--bs-danger); color: white; border: none; }
.fc-btn-hard { background-color: var(--bs-warning); color: #000; border: none; }
.fc-btn-good { background-color: var(--bs-success); color: white; border: none; }
.fc-btn-easy { background-color: var(--bs-primary); color: white; border: none; }

.fc-btn:hover { filter: brightness(0.9); }

/* Empty State */
.fc-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
}
.fc-empty-icon {
    font-size: 4rem;
    color: var(--bs-success);
    margin-bottom: 20px;
}

body.dark-mode .fc-empty-state {
    background: #2a2a2a;
    border-color: #444;
}
