* {
    box-sizing: border-box;
}

:root {
    --primary-pink: #ffc0cb;
    --soft-pink: #fff0f5;
    --aesthetic-pink: #ff8da1;
    --glass-white: rgba(255, 255, 255, 0.85);
    --matcha-green: #98fb98;
    --soft-coral: #ff7f50;
    --text-color: #5d4037;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--soft-pink);
    margin: 0;
    padding: 20px;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Heart Background Stickers */
.heart-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.heart {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-pink);
    transform: rotate(-45deg);
    opacity: 0.6;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-pink);
    border-radius: 50%;
}

.heart::before {
    top: -20px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 20px;
}

/* Container & Cards */
.container {
    max-width: 800px;
    margin: 20px auto;
    background: var(--glass-white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 192, 203, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid white;
}

h1 {
    text-align: center;
    color: var(--aesthetic-pink);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.results-summary {
    text-align: center;
    padding: 30px;
    background-color: #fffafb;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px dashed var(--aesthetic-pink);
}

.score {
    font-size: 1.5rem;
    margin: 10px 0;
}

.percentage {
    font-size: 2.5rem;
    color: var(--aesthetic-pink);
    font-weight: 700;
}

/* Selection Step Styling */
.selection-step {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
}

.step-title {
    color: var(--aesthetic-pink);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.radio-card {
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card .card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border: 2px solid var(--primary-pink);
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 192, 203, 0.2);
}

.radio-card:hover .card-content {
    transform: scale(1.05);
    background: var(--soft-pink);
}

.radio-card input:checked + .card-content {
    background: var(--aesthetic-pink);
    color: white;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 141, 161, 0.5);
}

.radio-card.small .card-content {
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Breadcrumbs Styling */
.breadcrumbs {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--aesthetic-pink);
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    border: 2px solid var(--soft-pink);
}

.breadcrumbs span, .breadcrumbs a, .breadcrumbs button {
    padding: 0 5px;
}

.breadcrumb-btn, .breadcrumb-link {
    background: none;
    border: none;
    color: var(--aesthetic-pink);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 5px 10px !important;
    border-radius: 15px;
    transition: all 0.2s ease;
}

.breadcrumb-btn:hover, .breadcrumb-link:hover {
    background-color: var(--soft-pink);
    transform: translateY(-1px);
}

.breadcrumb-btn:active {
    transform: translateY(0);
}

.sep {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* Smooth Transitions for Steps */
.selection-step, .test-area {
    transition: opacity 0.4s ease;
}

.question-card {
    position: relative;
    background: white;
    border: 2px solid var(--soft-pink);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 192, 203, 0.2);
}

/* Feedback Colors */
.question-card.correct {
    border-color: var(--matcha-green);
    background-color: #fafffa;
}

.question-card.incorrect {
    border-color: var(--soft-coral);
    background-color: #fffafa;
}

.difficulty-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.difficulty-1 { background-color: #a8e6cf; } /* Soft Green */
.difficulty-2 { background-color: #ffd3b6; } /* Soft Orange */
.difficulty-3 { background-color: #ffaaa5; } /* Soft Red/Pink */

.question-image img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 15px;
    border: 3px solid var(--soft-pink);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.option-label {
    padding: 15px 20px;
    border: 2px solid var(--soft-pink);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    background: #fff;
    font-weight: 500;
}

.option-label:hover {
    background-color: var(--soft-pink);
    border-color: var(--primary-pink);
}

input[type="radio"] {
    accent-color: var(--aesthetic-pink);
    width: 20px;
    height: 20px;
}

.correct-mark {
    color: #2ecc71;
    font-weight: 700;
    margin-left: auto;
}

.incorrect-mark {
    color: var(--soft-coral);
    font-weight: 700;
    margin-left: auto;
}

.btn-finish, .btn-retry {
    display: block;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: 20px;
    font-family: 'Quicksand', sans-serif;
}

.btn-finish {
    background-color: var(--aesthetic-pink);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 141, 161, 0.4);
}

.btn-finish:hover {
    background-color: #ff748a;
    transform: scale(1.02);
}

.btn-retry {
    background-color: var(--primary-pink);
    color: white;
}

.btn-retry:hover {
    background-color: #ffb1be;
    transform: scale(1.02);
}
