@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Syne:wght@600;700&display=swap");

.practice-test-page {
    --ink: #0b1a26;
    --muted: #556676;
    --accent: #0e7490;
    --accent-strong: #0b5c74;
    --accent-warm: #f59f0b;
    --card: #ffffff;
    --stroke: rgba(11, 26, 38, 0.12);
    --shadow: 0 20px 45px rgba(11, 26, 38, 0.18);
    min-height: var(--app-dvh);
    padding-bottom: 3rem;
    background:
        radial-gradient(1000px 600px at 12% -10%, rgba(14, 116, 144, 0.2), transparent 60%),
        radial-gradient(900px 500px at 88% 0%, rgba(245, 159, 11, 0.12), transparent 55%),
        linear-gradient(180deg, #eef3f7 0%, #e9f0f5 60%, #edf2f6 100%);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    position: relative;
    overflow: hidden;
}

.practice-test-page::before,
.practice-test-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.practice-test-page::before {
    width: 320px;
    height: 320px;
    right: -140px;
    top: 200px;
    background: conic-gradient(from 110deg, rgba(14, 116, 144, 0.45), rgba(14, 116, 144, 0.08), rgba(245, 159, 11, 0.35));
    border-radius: 40% 60% 35% 65%;
    opacity: 0.6;
}

.practice-test-page::after {
    width: 240px;
    height: 240px;
    left: -120px;
    bottom: 120px;
    background: radial-gradient(circle at 30% 30%, rgba(14, 116, 144, 0.35), transparent 70%);
    opacity: 0.7;
}

.practice-test-page > * {
    position: relative;
    z-index: 1;
}

.practice-test-hero {
    background: linear-gradient(135deg, #1f3b2d 0%, #355a3b 100%);
    color: #f2f6fb;
    padding: 4.5rem 1.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.practice-test-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 240px at 15% 10%, rgba(255, 255, 255, 0.2), transparent 65%),
        radial-gradient(600px 260px at 85% 0%, rgba(245, 159, 11, 0.28), transparent 60%);
    opacity: 0.9;
}

.practice-test-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -140px;
    bottom: -180px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 45% 55% 60% 40%;
}

.practice-test-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.practice-test-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    opacity: 0.75;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.practice-test-hero h1 {
    font-family: "Syne", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: hero-slide 0.8s ease both;
}

.practice-test-hero .subhead {
    font-size: 1.05rem;
    color: rgba(242, 246, 251, 0.8);
    max-width: 700px;
    animation: hero-slide 0.9s ease both;
}

.practice-test-content {
    margin-top: -2.5rem;
}

.practice-test-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    animation: card-rise 0.7s ease both;
}

.practice-test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.practice-test-header h2 {
    margin: 0 0 0.35rem;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.practice-test-header .badge {
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    background: rgba(14, 116, 144, 0.12);
    color: var(--accent-strong);
    border: 1px solid rgba(14, 116, 144, 0.2);
}

.practice-test-description {
    margin: 0;
    color: var(--muted);
}

.practice-test-sequence {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.practice-test-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    background: #f5f9fc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    animation: step-in 0.5s ease both;
}

.practice-test-step:nth-child(1) { animation-delay: 0.05s; }
.practice-test-step:nth-child(2) { animation-delay: 0.12s; }
.practice-test-step:nth-child(3) { animation-delay: 0.19s; }
.practice-test-step:nth-child(4) { animation-delay: 0.26s; }
.practice-test-step:nth-child(5) { animation-delay: 0.33s; }

.practice-test-step i {
    font-size: 1.1rem;
    color: var(--accent);
    background: rgba(14, 116, 144, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.step-index {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 18px rgba(14, 116, 144, 0.25);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 700;
    color: var(--ink);
}

.step-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.practice-test-warning {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff5e6;
    color: #b45309;
    border: 1px solid #f7d8a5;
    font-weight: 600;
}

.practice-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.practice-test-actions .btn {
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.practice-test-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border: none;
    box-shadow: 0 12px 20px rgba(14, 116, 144, 0.25);
}

.practice-test-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 26px rgba(14, 116, 144, 0.3);
}

.practice-test-actions .btn-outline-secondary {
    border-color: rgba(11, 26, 38, 0.2);
    color: var(--ink);
}

.loading-state,
.empty-state {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: var(--shadow);
}

.empty-state {
    flex-direction: column;
    text-align: center;
    color: var(--muted);
}

.empty-state i {
    font-size: 2.4rem;
    color: var(--accent);
}

@keyframes hero-slide {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes card-rise {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes step-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .practice-test-card,
    .practice-test-step,
    .practice-test-hero h1,
    .practice-test-hero .subhead {
        animation: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .practice-test-hero {
        padding: 3.5rem 1.25rem 3rem;
    }

    .practice-test-content {
        margin-top: -1.5rem;
    }

    .practice-test-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
