/* Kimono Card Components */
.kimono-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.kimono-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.kimono-card:focus {
    outline: 3px solid #ffc107;
    outline-offset: 4px;
}

.kimono-card-image {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 3px solid #d4af37;
    position: relative;
}

.kimono-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kimono-card-content {
    padding: 1.5rem;
}

.kimono-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0d4f3c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kimono-card-reading {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.kimono-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.kimono-card-details {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.kimono-card-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.kimono-card-detail-label {
    font-weight: bold;
    color: #0d4f3c;
}

.kimono-card-detail-value {
    color: #666;
}

.kimono-card-seasons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.season-tag {
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: #0d4f3c;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.season-tag.spring {
    background: linear-gradient(45deg, #ffb3ba, #ff9aa2);
}

.season-tag.summer {
    background: linear-gradient(45deg, #baffc9, #85e3ff);
}

.season-tag.autumn {
    background: linear-gradient(45deg, #ffc107, #ff8f00);
}

.season-tag.winter {
    background: linear-gradient(45deg, #81c784, #4caf50);
}

/* Quiz Components */
.quiz-question {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.quiz-progress-text {
    font-weight: bold;
    color: #0d4f3c;
}

.quiz-progress-bar {
    flex: 1;
    height: 8px;
    background-color: #dee2e6;
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #d4af37, #b8860b);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quiz-question-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d4f3c;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.quiz-option:hover {
    background-color: #e9ecef;
    border-color: #d4af37;
}

.quiz-option:focus,
.quiz-option.selected {
    background-color: #f9f7f0;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.quiz-option.correct {
    background-color: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.quiz-option.incorrect {
    background-color: #ffeaea;
    border-color: #f44336;
    color: #d32f2f;
}

.quiz-option-letter {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #0d4f3c, #184f45);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.quiz-option.correct .quiz-option-letter {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
}

.quiz-option.incorrect .quiz-option-letter {
    background: linear-gradient(45deg, #f44336, #ef5350);
}

.quiz-option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

.quiz-option-icon {
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-option.correct .quiz-option-icon {
    opacity: 1;
    color: #4caf50;
}

.quiz-option.incorrect .quiz-option-icon {
    opacity: 1;
    color: #f44336;
}

.quiz-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.quiz-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.quiz-btn-primary {
    background: linear-gradient(45deg, #0d4f3c, #184f45);
    color: #fff;
}

.quiz-btn-primary:hover,
.quiz-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 79, 60, 0.3);
    outline: 2px solid #0d4f3c;
    outline-offset: 2px;
}

.quiz-btn-secondary {
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: #0d4f3c;
}

.quiz-btn-secondary:hover,
.quiz-btn-secondary:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.quiz-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.quiz-explanation {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 5px 5px 0;
    animation: fadeInUp 0.5s ease-out;
}

.quiz-explanation-title {
    font-weight: bold;
    color: #1565c0;
    margin-bottom: 0.5rem;
}

.quiz-explanation-text {
    color: #0d47a1;
    line-height: 1.6;
}

.quiz-results {
    background-color: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.quiz-results-title {
    font-size: 2rem;
    color: #0d4f3c;
    margin-bottom: 1rem;
}

.quiz-score {
    font-size: 3rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 1rem;
}

.quiz-score-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.quiz-results-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.quiz-restart-btn {
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: #0d4f3c;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-restart-btn:hover,
.quiz-restart-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.text-primary { color: #0d4f3c; }
.text-secondary { color: #666; }
.text-accent { color: #d4af37; }

.bg-primary { background-color: #0d4f3c; }
.bg-secondary { background-color: #f8f9fa; }
.bg-accent { background-color: #d4af37; }

/* Responsive Components */
@media (max-width: 768px) {
    .kimono-card {
        margin-bottom: 1rem;
    }
    
    .kimono-card-content {
        padding: 1.2rem;
    }
    
    .kimono-card-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .kimono-card-reading {
        font-size: 0.85rem;
    }
    
    .kimono-card-seasons {
        justify-content: flex-start;
        margin-top: 0.8rem;
    }
    
    .season-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Quiz mobile improvements */
    .quiz-question {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .quiz-question-text {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .quiz-option {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .quiz-option-letter {
        width: 35px;
        height: 35px;
    }
    
    .quiz-option-text {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .quiz-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .quiz-btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .quiz-results {
        padding: 2rem 1.5rem;
    }
    
    .quiz-score {
        font-size: 2.5rem;
    }
    
    .quiz-results-message {
        padding: 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Kimono cards extra small */
    .kimono-card-image {
        height: 180px;
    }
    
    .kimono-card-content {
        padding: 1rem;
    }
    
    .kimono-card-title {
        font-size: 1.2rem;
    }
    
    .kimono-card-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .kimono-card-detail {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .season-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Quiz extra small */
    .quiz-question {
        padding: 1rem;
    }
    
    .quiz-progress {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .quiz-progress-bar {
        margin: 0;
        width: 100%;
    }
    
    .quiz-progress-text {
        font-size: 0.9rem;
    }
    
    .quiz-question-text {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .quiz-option {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .quiz-option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .quiz-option-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .quiz-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .quiz-results {
        padding: 1.5rem 1rem;
    }
    
    .quiz-results-title {
        font-size: 1.6rem;
    }
    
    .quiz-score {
        font-size: 2.2rem;
    }
    
    .quiz-score-text {
        font-size: 1rem;
    }
    
    .quiz-results-message {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Modal improvements for mobile */
    .kimono-modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .kimono-modal-header {
        padding: 1rem;
    }
    
    .kimono-modal-body {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .kimono-modal-image {
        order: 1;
        text-align: center;
    }
    
    .kimono-modal-info {
        order: 2;
    }
    
    .kimono-detail-section {
        margin-bottom: 1.2rem;
    }
    
    .kimono-detail-section h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .kimono-detail-section li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }
}