/* GPU Advisor ("Savjetnik za grafičku karticu") — native <dialog> styled to match gamingracunari.ba */

.ga-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 14px 18px;
    background: #fafafa;
    border: 1px solid #d4d4d8;
    border-radius: 12px;
}
.ga-strip__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.ga-strip__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #18181b;
    color: #ffffff;
}
.ga-strip__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ga-strip__title {
    font-size: 15px;
    line-height: 1.3;
    color: #18181b;
}
.ga-strip__sub {
    font-size: 13px;
    line-height: 1.4;
    color: #52525b;
}
.ga-strip__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.ga-strip__count {
    font-size: 12px;
    font-weight: 600;
    color: #18813c;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.ga-strip__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: #18181b;
    color: #ffffff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, transform .12s ease;
}
.ga-strip__cta:hover { background: #27272a; }
.ga-strip__cta:active { transform: translateY(1px); }

.ga-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #18181b;
    border-radius: 10px;
    background: #ffffff;
    color: #18181b;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.ga-sidebar-btn:hover {
    background: #18181b;
    color: #ffffff;
}

/* Mobile floating scroll pill */
.ga-float {
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    background: #18181b;
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}
.ga-float[hidden] { display: none; }
.ga-float__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 10px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ga-float__close {
    padding: 10px 12px 10px 6px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #d4d4d8;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
@media (min-width: 1024px) {
    .ga-float { display: none !important; }
}

/* Native <dialog> modal — matching mikrofin-rate.blade.php */
html:has(.ga-modal[open]) { overflow: hidden; }
.ga-modal {
    box-sizing: border-box;
    width: min(960px, calc(100% - 28px));
    max-width: none;
    height: min(690px, 90dvh);
    max-height: 92dvh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    background: #ffffff;
    color: #18181b;
    border: 1px solid #d4d4d8;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}
.ga-modal::backdrop {
    background: rgba(24, 24, 27, 0.56);
    backdrop-filter: blur(2px);
}
.ga-modal__surface {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 92dvh;
}
.ga-modal__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid #e4e4e7;
    background: #ffffff;
}
.ga-modal__head-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ga-modal__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #18181b;
}
.ga-modal__step-label {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #52525b;
}
.ga-modal__head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ga-modal__restart {
    padding: 6px 12px;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background: #ffffff;
    color: #18181b;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.ga-modal__restart:hover { background: #f4f4f5; }
.ga-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #ffffff;
    color: #18181b;
    cursor: pointer;
}
.ga-modal__close:hover { background: #f4f4f5; }

.ga-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #f4f4f5;
}
.ga-progress__bar {
    height: 100%;
    background: #18181b;
    transition: width .22s ease;
}

.ga-modal__body {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 22px;
}

.ga-question {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #18181b;
}
.ga-optional {
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
}
.ga-hint {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.45;
    color: #52525b;
}

.ga-options {
    display: grid;
    gap: 10px;
}
.ga-options--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ga-options--1col {
    grid-template-columns: 1fr;
}

.ga-opt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    text-align: left;
    border: 1.5px solid #d4d4d8;
    border-radius: 12px;
    background: #ffffff;
    color: #18181b;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ga-opt:hover {
    border-color: #71717a;
    background: #fafafa;
}
.ga-opt.is-selected {
    border-color: #18181b;
    background: #f4f4f5;
    box-shadow: inset 0 0 0 1px #18181b;
}
.ga-opt__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.ga-opt__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.ga-opt__count {
    font-size: 12px;
    font-weight: 600;
    color: #52525b;
    background: #f4f4f5;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.ga-opt.is-selected .ga-opt__count {
    background: #18181b;
    color: #ffffff;
}
.ga-opt__desc {
    font-size: 13px;
    line-height: 1.4;
    color: #52525b;
}

.ga-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: 14px;
    padding: 13px 16px;
    text-align: left;
    border: 1.5px solid #d4d4d8;
    border-radius: 12px;
    background: #fafafa;
    color: #18181b;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .15s ease, background-color .15s ease;
}
.ga-switch:hover {
    border-color: #71717a;
}
.ga-switch.is-on {
    border-color: #18181b;
    background: #f4f4f5;
}
.ga-switch__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ga-switch__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #18181b;
}
.ga-switch__desc {
    font-size: 12.5px;
    line-height: 1.35;
    color: #52525b;
}
.ga-switch__track {
    position: relative;
    flex: none;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d4d4d8;
    transition: background-color .18s ease;
}
.ga-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform .18s ease;
}
.ga-switch.is-on .ga-switch__track {
    background: #18813c;
}
.ga-switch.is-on .ga-switch__thumb {
    transform: translateX(20px);
}

.ga-field {
    margin-bottom: 18px;
}
.ga-field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #18181b;
}
.ga-field__label small {
    font-weight: 500;
    color: #71717a;
}

.ga-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.ga-seg {
    padding: 11px 12px;
    border: 1.5px solid #d4d4d8;
    border-radius: 10px;
    background: #ffffff;
    color: #18181b;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ga-seg.is-active {
    border-color: #18181b;
    background: #18181b;
    color: #ffffff;
}

.ga-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ga-chip {
    padding: 9px 14px;
    border: 1.5px solid #d4d4d8;
    border-radius: 999px;
    background: #ffffff;
    color: #18181b;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ga-chip.is-active {
    border-color: #18181b;
    background: #18181b;
    color: #ffffff;
}
.ga-chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Results Stage */
.ga-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.ga-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background: #f4f4f5;
    color: #18181b;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.ga-pill:hover {
    border-color: #18181b;
    background: #e4e4e7;
}
.ga-pill__edit {
    color: #71717a;
    font-size: 11px;
}

.ga-notice {
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13.5px;
    line-height: 1.45;
}
.ga-loading {
    padding: 40px 16px;
    text-align: center;
    font-size: 14.5px;
    color: #52525b;
}

.ga-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.ga-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e4e4e7;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}
.ga-card--best {
    border-color: #18181b;
    box-shadow: 0 8px 24px rgba(24, 24, 27, 0.08);
}
.ga-card__ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 12px;
    background: #f4f4f5;
    color: #18181b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.ga-card--best .ga-card__ribbon {
    background: #18181b;
    color: #ffffff;
}
.ga-card__tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #18813c;
}
.ga-card--step_up .ga-card__tag {
    color: #92400e;
    background: #fef3c7;
}
.ga-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
    gap: 10px;
}
.ga-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    padding: 6px;
    background: #ffffff;
}
.ga-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ga-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #18181b;
}
.ga-card__title a {
    color: inherit;
    text-decoration: none;
}
.ga-card__title a:hover {
    text-decoration: underline;
}
.ga-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.ga-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    background: #f4f4f5;
    color: #27272a;
}
.ga-badge--ok {
    background: #ecfdf3;
    color: #166534;
}
.ga-badge--warn {
    background: #fffbeb;
    color: #92400e;
}
.ga-card__price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}
.ga-card__price {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    color: #18181b;
}
.ga-card__rate {
    font-size: 12px;
    color: #18813c;
    font-weight: 600;
}
.ga-card__reasons {
    margin: 0;
    padding: 10px 0 0 16px;
    border-top: 1px solid #f4f4f5;
    font-size: 12.5px;
    line-height: 1.45;
    color: #3f3f46;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ga-card__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 8px;
}
.ga-card__buy {
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #18181b;
    color: #ffffff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.ga-card__buy:hover { background: #27272a; }
.ga-card__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 600;
}
.ga-card__links a {
    color: #52525b;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ga-card__links a:hover { color: #18181b; }

/* Optional animated comparison drawer below results */
.ga-compare-bar {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.ga-compare-bar[hidden] { display: none; }
.ga-compare-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #18181b;
    border-radius: 999px;
    background: #ffffff;
    color: #18181b;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .15s ease, color .15s ease;
}
.ga-compare-toggle:hover,
.ga-compare-toggle[aria-expanded="true"] {
    background: #18181b;
    color: #ffffff;
}
.ga-compare-toggle__arrow {
    display: inline-block;
    transition: transform .22s ease;
}
.ga-compare-toggle[aria-expanded="true"] .ga-compare-toggle__arrow {
    transform: rotate(180deg);
}

.ga-compare-drawer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition: grid-template-rows .32s cubic-bezier(.22, 1, .36, 1), opacity .24s ease, margin-top .28s ease;
}
.ga-compare-drawer.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 18px;
}
.ga-compare-drawer__inner {
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    background: #fafafa;
}
.ga-compare-drawer:not(.is-open) .ga-compare-drawer__inner {
    border-color: transparent;
}
.ga-compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e4e4e7;
    background: #ffffff;
}
.ga-compare-head h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #18181b;
}
.ga-compare-up {
    padding: 5px 11px;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background: #ffffff;
    color: #18181b;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.ga-compare-up:hover { background: #f4f4f5; }

.ga-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ga-cmp-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}
.ga-cmp-table th,
.ga-cmp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f2;
    text-align: left;
    vertical-align: middle;
}
.ga-cmp-table thead th {
    background: #fafafa;
    font-weight: 700;
    color: #18181b;
    border-bottom: 1px solid #e4e4e7;
}
.ga-cmp-table tbody th {
    width: 150px;
    color: #52525b;
    font-weight: 600;
    background: #fafafa;
}
.ga-cmp-role {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #52525b;
    margin-bottom: 2px;
}
.ga-cmp-role--best { color: #18813c; }
.ga-cmp-name {
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
    color: #18181b;
    text-decoration: none;
}
.ga-cmp-name:hover { text-decoration: underline; }
.ga-cmp-win {
    color: #166534;
    font-weight: 700;
}
.ga-cmp-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ga-cmp-bar__track {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: #e4e4e7;
    overflow: hidden;
    min-width: 60px;
}
.ga-cmp-bar__fill {
    height: 100%;
    border-radius: 999px;
    background: #18181b;
}
.ga-cmp-bar__fill--win {
    background: #18813c;
}
.ga-cmp-bar__val {
    font-size: 12px;
    font-weight: 700;
    color: #27272a;
    white-space: nowrap;
}

/* Footer */
.ga-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid #e4e4e7;
    background: #fafafa;
}
.ga-foot__left,
.ga-foot__right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ga-live-pill {
    font-size: 12.5px;
    font-weight: 600;
    color: #18813c;
}
.ga-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.ga-btn--primary {
    border: 0;
    background: #18181b;
    color: #ffffff;
}
.ga-btn--primary:hover:not(:disabled) { background: #27272a; }
.ga-btn--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.ga-btn--ghost {
    border: 1px solid #d4d4d8;
    background: #ffffff;
    color: #18181b;
}
.ga-btn--ghost:hover { background: #f4f4f5; }

@media (max-width: 860px) {
    .ga-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }
    .ga-strip__actions {
        justify-content: space-between;
    }
    .ga-modal {
        width: 100%;
        height: 88dvh;
        max-height: 94dvh;
        margin: auto auto 0;
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
    }
    .ga-modal__surface {
        height: 100%;
        max-height: 94dvh;
    }
    .ga-modal__head { padding: 14px 16px 12px; }
    .ga-modal__body { padding: 14px 16px; }
    .ga-modal__foot { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); }
    .ga-question { font-size: 18px; }
    .ga-opt { padding: 12px 14px; min-height: 48px; }
    .ga-options--2col,
    .ga-segmented,
    .ga-grid {
        grid-template-columns: 1fr;
    }
    .ga-live-pill { display: none; }
}
