/* Hiragana Flashcards Plugin Styles */

.hiragana-flashcards-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.hfc-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Reference Bar */
.hfc-reference-bar {
    background: #f7fafc;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.hfc-reference-char {
    display: inline-block;
    margin: 0 8px;
    font-size: 24px;
    color: #4a5568;
    opacity: 0.6;
    transition: opacity 0.2s;
    cursor: default;
}

.hfc-reference-char:hover {
    opacity: 1;
}

.hfc-reference-char.current {
    color: #667eea;
    opacity: 1;
    font-weight: bold;
    transform: scale(1.2);
}

.hfc-reference-char.completed {
    color: #48bb78;
    opacity: 1;
}

/* Main Card */
.hfc-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hfc-card:active {
    transform: scale(0.98);
}

.hfc-hiragana {
    font-size: 180px;
    font-weight: 300;
    color: #2d3748;
    margin: 0;
    line-height: 1;
}

.hfc-romaji {
    font-size: 48px;
    color: #4a5568;
    margin-top: 20px;
    font-weight: 500;
}

.hfc-counter {
    font-size: 32px;
    color: #667eea;
    font-weight: bold;
    margin-top: 20px;
}

.hfc-counter.completed {
    color: #48bb78;
}

.hfc-counter-label {
    font-size: 14px;
    color: #718096;
    margin-top: 8px;
}

/* Progress Info */
.hfc-progress-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* Mode Options */
.hfc-mode-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hfc-mode-btn {
    padding: 10px 20px;
    font-size: 14px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.hfc-mode-btn.active {
    background: #667eea;
    color: white;
}

.hfc-mode-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Toggle */
.hfc-mode-toggle {
    text-align: center;
    margin-bottom: 20px;
}

.hfc-mode-toggle label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hfc-mode-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Navigation Controls */
.hfc-nav-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.hfc-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hfc-btn {
    flex: 1;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.hfc-next-btn {
    background: #667eea;
}

.hfc-next-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hfc-back-btn {
    background: #4299e1;
}

.hfc-back-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.hfc-reset-btn {
    background: #e53e3e;
}

.hfc-reset-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

/* Statistics */
.hfc-stats {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.hfc-stats h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 18px;
}

.hfc-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hfc-stat-item:last-child {
    border-bottom: none;
}

.hfc-stat-char {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.hfc-stat-romaji {
    font-size: 14px;
    color: #718096;
    margin-left: 10px;
}

.hfc-stat-count {
    background: #667eea;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.hfc-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #cbd5e0;
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .hfc-wrapper {
        padding: 20px;
    }
    
    .hfc-hiragana {
        font-size: 140px;
    }
    
    .hfc-romaji {
        font-size: 36px;
    }
    
    .hfc-card {
        padding: 40px 20px;
    }
}

/* Theme: Blue */
.hiragana-flashcards-container[data-theme="blue"] .hfc-mode-btn {
    border-color: #4299e1;
    color: #4299e1;
}

.hiragana-flashcards-container[data-theme="blue"] .hfc-mode-btn.active {
    background: #4299e1;
}

.hiragana-flashcards-container[data-theme="blue"] .hfc-next-btn {
    background: #4299e1;
}

.hiragana-flashcards-container[data-theme="blue"] .hfc-counter {
    color: #4299e1;
}

.hiragana-flashcards-container[data-theme="blue"] .hfc-stat-count {
    background: #4299e1;
}

.hiragana-flashcards-container[data-theme="blue"] .hfc-reference-char.current {
    color: #4299e1;
}

/* Theme: Green */
.hiragana-flashcards-container[data-theme="green"] .hfc-mode-btn {
    border-color: #48bb78;
    color: #48bb78;
}

.hiragana-flashcards-container[data-theme="green"] .hfc-mode-btn.active {
    background: #48bb78;
}

.hiragana-flashcards-container[data-theme="green"] .hfc-next-btn {
    background: #48bb78;
}

.hiragana-flashcards-container[data-theme="green"] .hfc-counter {
    color: #48bb78;
}

.hiragana-flashcards-container[data-theme="green"] .hfc-stat-count {
    background: #48bb78;
}

.hiragana-flashcards-container[data-theme="green"] .hfc-reference-char.current {
    color: #48bb78;
}
