/* Vocabulary Cards System - Interactive Components */


/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn.primary:hover {
    background: #3b82f6;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
}

.btn.danger {
    background: #f44336;
    color: white;
    border-color: #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn.danger:hover {
    background: #d32f2f;
    box-shadow: 0 8px 30px rgba(244, 67, 54, 0.4);
}

.btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--shadow);
}

.btn.secondary:hover {
    color: var(--accent);
    background: rgba(74, 144, 226, 0.05);
}

.btn.icon {
    padding: 0.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    min-width: 44px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--shadow) !important;
}

.btn .material-symbols-sharp {
    font-size: 1.2rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--shadow);
    cursor: pointer;
    transition: var(--card-transition);
    font-size: 0.85rem;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Words Display */
.words-list {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    max-height: calc(100vh);
    overflow-y: auto;
}

.words-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

/* Word Items */
.vocab-word-item {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.vocab-word-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--status-unread);
    transition: all 0.3s ease;
}

.vocab-word-item.unread::before { background: var(--status-unread); }
.vocab-word-item.reading::before { background: var(--status-reading); }
.vocab-word-item.familiar::before { background: var(--status-familiar); }
.vocab-word-item.memorized::before { background: var(--status-memorized); }

.vocab-word-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--accent);
}

.word-checkbox {
    margin-right: 1rem;
}

.word-info {
    flex: 1;
    width: 100%;
}

.greek-word {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.word-details {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.transliteration {
    font-style: italic;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.meaning {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.word-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.category-badge {
    background: rgba(74, 144, 226, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.unread { background: var(--status-unread); }
.status-badge.reading { background: var(--status-reading); }
.status-badge.familiar { background: var(--status-familiar); }
.status-badge.memorized { background: var(--status-memorized); }

.word-actions {
    display: flex;
    gap: 0.5rem;
}

/* Vocabulary Cards */
.vocab-card {
    height: 260px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-primary);
    border: 2px solid transparent;
}

.card-front {
    transform: rotateY(0);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(59, 130, 246, 0.03));
}

.vocab-card.flipped .card-front {
    transform: rotateY(180deg);
}

.vocab-card.flipped .card-back {
    transform: rotateY(0);
}

.vocab-card:hover .card-front,
.vocab-card:hover .card-back {
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--shadow);
}

.card-front::before,
.card-back::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    width: 100%;
    background: var(--status-unread);
    z-index: 1;
}

.vocab-card.unread .card-front::before,
.vocab-card.unread .card-back::before { background: var(--status-unread); }
.vocab-card.reading .card-front::before,
.vocab-card.reading .card-back::before { background: var(--status-reading); }
.vocab-card.familiar .card-front::before,
.vocab-card.familiar .card-back::before { background: var(--status-familiar); }
.vocab-card.memorized .card-front::before,
.vocab-card.memorized .card-back::before { background: var(--status-memorized); }

.vocab-card .greek-word {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.vocab-card .transliteration {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-style: italic;
}

.vocab-card .meaning {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.flip-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
}

/* Info Button */
.info-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--shadow);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--shadow);
}

.info-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.card-info-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

/* Practice info button */
.practice-info-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    width: 40px;
    height: 40px;
}

/* Custom checkbox */
.word-checkbox input[type="checkbox"] {
    display: none;
}

.word-checkbox label {
    width: 20px;
    height: 20px;
    border: 2px solid var(--shadow);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-checkbox input[type="checkbox"]:checked+label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.word-checkbox input[type="checkbox"]:checked+label {
    background-color: rgba(74, 144, 226, 0.1);
    border-color: var(--accent);
}

.word-checkbox input[type="checkbox"]:disabled+label {
    opacity: 0.5;
    cursor: not-allowed;
}

.words-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1%;
}

/* Status Buttons */
.status-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--shadow);
    font-size: 0.9rem;
    font-weight: 500;
}

.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.status-btn span:not(.material-symbols-sharp) {
    display: none;
}

.card-actions .status-btn span {
    display: inline-block;
}

.status-btn.unread.active {
    background: var(--status-unread);
    color: white;
    border-color: var(--status-unread);
}

.status-btn.reading.active {
    background: var(--status-reading);
    color: white;
    border-color: var(--status-reading);
}

.status-btn.familiar.active {
    background: var(--status-familiar);
    color: white;
    border-color: var(--status-familiar);
}

.status-btn.memorized.active {
    background: var(--status-memorized);
    color: white;
    border-color: var(--status-memorized);
}

/* Enhanced word list items */
.word-list-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.word-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.word-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

.word-list-item:hover::before {
    transform: scaleY(1);
}

.word-list-item.selected {
    border-color: var(--accent);
    background-color: rgba(74, 144, 226, 0.05);
}

.word-list-item.selected::before {
    transform: scaleY(1);
}

.list-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.list-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.word-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.word-count .material-symbols-sharp {
    font-size: 1rem;
    color: var(--accent);
}

.list-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

.list-status {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.word-list-item:hover .list-status {
    opacity: 1;
    color: var(--accent);
}

/* Enhanced progress indicators */
.progress-indicator {
    width: 100%;
    height: 6px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #3b82f6);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced stat items */
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item .material-symbols-sharp {
    font-size: 1.1rem;
    color: var(--accent);
}

/* Enhanced review count */
.review-count {
    background: rgba(74, 144, 226, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Enhanced flip hints */
.flip-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vocab-card:hover .flip-hint {
    opacity: 1;
}

.flip-hint .material-symbols-sharp {
    font-size: 1rem;
}

/* Enhanced empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: 12px;
    margin: 1rem 0;
}

.empty-state .material-symbols-sharp {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    opacity: 0.7;
}

.empty-state h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .btn {
    font-size: 1rem !important;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn .material-symbols-sharp {
    font-size: .5rem;
    font-size: 1.5rem;
    /* color: var(--text-primary); */
    margin: 0;
    margin-right: 0.1rem;
}

/* Session completion styles */
.completion-content {
    text-align: center;
    padding: 2rem 0;
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.session-summary {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 100px;
}

.summary-stat .material-symbols-sharp {
    font-size: 2rem;
    color: var(--accent);
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .words-list {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .words-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .vocab-word-item {
        padding: 1rem;
    }
    
    .greek-word {
        font-size: 1.4rem;
    }
    
    .vocab-card {
        height: 220px;
    }
    
    .vocab-card .greek-word {
        font-size: 1.8rem;
    }
    
    .vocab-card .meaning {
        font-size: 1.1rem;
    }
    
    .card-front,
    .card-back {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn.icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .word-list-item {
        padding: 1rem;
    }
    
    .list-info h3 {
        font-size: 1rem;
    }
    
    .session-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .summary-stat {
        flex-direction: row;
        justify-content: center;
    }
    
    .completion-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .words-list,
    .words-grid {
        padding: 0.75rem;
    }
    
    .vocab-word-item {
        padding: 0.875rem;
    }
    
    .greek-word {
        font-size: 1.3rem;
    }
    
    .vocab-card {
        height: 200px;
    }
    
    .vocab-card .greek-word {
        font-size: 1.6rem;
    }
    
    .card-front,
    .card-back {
        padding: 1.25rem;
    }
    
    .word-meta {
        gap: 0.5rem;
    }
    
    .category-badge,
    .status-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}