@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: 'Lora', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
}

#app {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.result-good {
    background-color: #F0FFF0;
    border: 1px solid #3CB371;
}

.result-bad {
    background-color: #FFF0F0;
    border: 1px solid #CD5C5C;
}

.result-good .result-title {
    color: #2E8B57;
}

.result-bad .result-title {
    color: #B22222;
}


.result-section h3 {
    font-size: 1.25rem;
    color: #8B0000;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #DAA520;
    display: inline-block;
}

.prose ul > li::marker {
    color: #B8860B;
}

.prose {
    color: #3A2D27;
}

.prose strong {
    color: #8B0000;
}

.prose a {
    color: #B8860B;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.badge-bad {
    color: #fff;
    background-color: #B22222;
}

.badge-good {
    color: #fff;
    background-color: #2E8B57;
}

.muon-tuoi-step {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.muon-tuoi-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #8B0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Noto Serif', serif;
}

/* Styles for limitation icons in results */
.limitation-title {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
    margin-bottom: 0.25rem; /* 4px */
}

.limitation-title h4 {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: #A52A2A; 
    margin: 0;
    font-family: 'Noto Serif', serif;
}

.limitation-icon {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    object-fit: contain;
    flex-shrink: 0;
}

.limitation-description {
    padding-left: 3.25rem; /* 52px, to align with the text next to the icon */
    margin-top: 0;
    color: #3A2D27;
}
