/* Flashcard specific styles */
.flashcard-wrapper {
    perspective: 1000px;
    height: 400px;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
}

.flashcard-back {
    transform: rotateY(180deg);
}

.flashcard-front .card,
.flashcard-back .card {
    height: 100%;
    border: 2px solid var(--bs-border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.flashcard:hover .card {
    border-color: var(--bs-primary);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* Progress bar styling */
.progress {
    background-color: var(--bs-gray-800);
}

.progress-bar {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    transition: width 0.4s ease;
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flashcard-wrapper {
        height: 350px;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .flashcard-wrapper {
        height: 300px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

/* Animation for state transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner enhancement */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Card content styling */
#acronym {
    word-break: break-all;
    line-height: 1.2;
}

#definition {
    line-height: 1.6;
}

/* Icon styling */
.fa-shield-alt,
.fa-lightbulb,
.fa-eye {
    opacity: 0.7;
}

#short-def {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    line-height: 1.4;
}
