/* assets/css/base.css - Core Application Styles */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(34, 87, 122, 0.9) 0%, rgba(56, 142, 60, 0.9) 50%, rgba(27, 94, 32, 0.9) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flashcard-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(34, 87, 122, 0.3);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(56, 142, 60, 0.2);
}

.header {
    position: relative;
    margin-bottom: 30px;
}

.header h1 {
    color: #1b5e20;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(34, 87, 122, 0.1);
    padding-left: 60px;
}

.progress {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    margin: 20px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #43a047, #388e3c);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.card-info {
    display: flex;
    justify-content: space-between;
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.flashcard {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(56, 142, 60, 0.2);
    border-radius: 15px;
    padding: 40px 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
}

.flashcard:hover {
    border-color: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 142, 60, 0.2);
}

.flashcard.flipped {
    background: rgba(232, 245, 233, 0.9);
    border-color: #43a047;
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.2);
}

.flashcard.state-new {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.05);
}

.flashcard.state-learning {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.flashcard.state-review {
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.05);
}

.flashcard.state-mastered {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.japanese-word {
    font-size: 48px;
    font-weight: bold;
    color: #1b5e20;
    margin-bottom: 8px;
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    text-shadow: 0 2px 4px rgba(34, 87, 122, 0.1);
    line-height: 1.2;
}

.reading {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
    font-style: italic;
}

.meaning {
    font-size: 24px;
    color: #2e7d32;
    font-weight: 600;
}

.prompt-text {
    font-size: 18px;
    color: #457a5a;
    margin-bottom: 20px;
    font-style: italic;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #43a047, #388e3c);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 142, 60, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #388e3c;
    color: #388e3c;
    transform: translateY(-1px);
}

.footer-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-btn:hover {
    border-color: #388e3c;
    color: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 142, 60, 0.2);
}

.donate-btn {
    border-color: #ff6b6b !important;
    color: #ff6b6b !important;
}

.donate-btn:hover {
    background: #ff6b6b !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3) !important;
}

.success-message {
    display: none; 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    background: #4caf50; 
    color: white; 
    padding: 15px 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); 
    z-index: 1001;
    font-weight: 500;
}