/* LGS / YKS Puan Hesaplama — Yetkin Akademi */
.ecalc-page {
    background: #fff;
    min-height: 60vh;
    padding-bottom: 72px;
}

.ecalc-page--hub {
    background: #fff;
}

.ecalc-hero {
    padding: 56px 0 32px;
    background: #fff;
}

.ecalc-hero--hub {
    padding: 48px 0 12px;
}

.ecalc-hero--compact {
    padding: 40px 0 24px;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.ecalc-hero__inner {
    max-width: 720px;
}

.ecalc-hero--hub .ecalc-hero__inner {
    max-width: 640px;
}

.ecalc-hero__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(91, 107, 255, 0.12);
    color: var(--system_primery_color, #5b6bff);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.ecalc-hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin-bottom: 12px;
}

.ecalc-hero--hub .ecalc-hero__title {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    margin-bottom: 10px;
}

.ecalc-hero__lead {
    color: #6b7280;
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0;
}

.ecalc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--system_primery_color, #5b6bff);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 14px;
    text-decoration: none;
}

.ecalc-back:hover {
    color: #3f4fd8;
}

/* Hub cards */
.ecalc-hub {
    padding: 0 0 56px;
}

.ecalc-subnav {
    padding: 0 0 8px;
    margin-top: -8px;
}

.ecalc-subnav .ecalc-back {
    margin-bottom: 0;
}

.ecalc-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.ecalc-hub-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 240px;
    border-radius: 28px;
    padding: 36px 32px 36px 40px;
    text-decoration: none;
    color: #111827;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ecalc-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
    color: #111827;
}

.ecalc-hub-card--lgs {
    background: linear-gradient(105deg, #ffe8dc 0%, #fff1ea 42%, #fff8f4 100%);
}

.ecalc-hub-card--yks {
    background: linear-gradient(105deg, #e8e2fc 0%, #eee8ff 42%, #f7f4ff 100%);
}

.ecalc-hub-card__body {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 168px;
}

.ecalc-hub-card__kicker {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 14px;
}

.ecalc-hub-card__title {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.02;
    margin: 0;
    color: #111827;
}

.ecalc-hub-card__title span {
    display: block;
}

.ecalc-hub-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-weight: 700;
    font-size: 0.98rem;
    color: #111827;
    letter-spacing: -0.01em;
}

.ecalc-hub-card__cta span[aria-hidden="true"] {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1;
}

.ecalc-hub-card__icon {
    flex-shrink: 0;
    width: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecalc-hub-card__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Legacy icon helpers (kept for compatibility) */
.ecalc-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    position: relative;
}

.ecalc-icon--calendar {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.ecalc-icon--calendar::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 16px;
    right: 16px;
    height: 14px;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.35);
}

.ecalc-icon--calendar::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fde047;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ecalc-icon--calc {
    background: linear-gradient(145deg, #a78bfa, #7c3aed);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.28);
}

.ecalc-icon--calc::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    bottom: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.ecalc-icon--calc::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #22c55e;
}

/* Workspace */
.ecalc-workspace {
    padding-top: 0;
}

.ecalc-panel {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eef0f5;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
    padding: 24px;
    margin-bottom: 20px;
}

.ecalc-panel__head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1a1d2e;
}

.ecalc-panel__head p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 0.92rem;
}

.ecalc-table-wrap {
    overflow-x: auto;
}

.ecalc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.ecalc-table th,
.ecalc-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef0f5;
    text-align: left;
    vertical-align: middle;
}

.ecalc-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 700;
}

.ecalc-table td:first-child {
    font-weight: 600;
    color: #1f2937;
}

.ecalc-input {
    width: 72px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #d8dce8;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    background: #fafbff;
}

.ecalc-input:focus {
    outline: none;
    border-color: var(--system_primery_color, #5b6bff);
    box-shadow: 0 0 0 3px rgba(91, 107, 255, 0.15);
}

.ecalc-input--wide {
    width: 120px;
}

.ecalc-net {
    display: inline-block;
    min-width: 48px;
    font-weight: 800;
    color: var(--system_primery_color, #5b6bff);
}

.ecalc-obp-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecalc-obp-row label {
    font-weight: 600;
    color: #374151;
}

.ecalc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #4b5563;
    font-weight: 500;
}

.ecalc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.ecalc-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ecalc-btn:hover {
    transform: translateY(-1px);
}

.ecalc-btn--primary {
    background: var(--system_primery_color, #5b6bff);
    color: #fff;
}

.ecalc-btn--ghost {
    background: #eef0f8;
    color: #374151;
}

/* Result card */
.ecalc-result-card {
    position: sticky;
    top: 96px;
    border-radius: 20px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.ecalc-result-card--lgs {
    background: linear-gradient(160deg, #fb7185 0%, #f43f5e 100%);
}

.ecalc-result-card--yks {
    background: linear-gradient(160deg, #8b5cf6 0%, #6d28d9 100%);
}

.ecalc-result-card__label {
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ecalc-result-card__score {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 10px 0 18px;
}

.ecalc-result-card__meta {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 14px;
    margin-bottom: 14px;
}

.ecalc-result-card__meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}

.ecalc-score-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 16px;
}

.ecalc-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.ecalc-score-item strong {
    font-size: 1.05rem;
}

.ecalc-disclaimer {
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0.88;
    margin: 0;
}

@media (max-width: 991px) {
    .ecalc-result-card {
        position: static;
    }

    .ecalc-hub-grid {
        gap: 18px;
    }

    .ecalc-hub-card {
        min-height: 210px;
        padding: 28px 24px 28px 28px;
    }

    .ecalc-hub-card__icon {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 767px) {
    .ecalc-hub-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .ecalc-hub-card {
        min-height: 200px;
    }
}

@media (max-width: 575px) {
    .ecalc-hub-card {
        flex-direction: row;
        padding: 24px 20px 24px 24px;
    }

    .ecalc-hub-card__body {
        min-height: 150px;
    }

    .ecalc-hub-card__icon {
        width: 84px;
        height: 84px;
    }

    .ecalc-hub-card__title {
        font-size: 1.45rem;
    }
}
