@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../views/**/*.blade.php';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

@layer base {
    :root {
        color-scheme: light;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        background: #f7fbff;
        color: #172033;
    }

    ::selection {
        background: #99f6e4;
        color: #0f172a;
    }
}

@layer components {
    .app-bg {
        min-height: 100vh;
        background:
            radial-gradient(circle at 14% 8%, rgba(45, 212, 191, 0.22), transparent 30rem),
            radial-gradient(circle at 88% 16%, rgba(56, 189, 248, 0.18), transparent 28rem),
            linear-gradient(180deg, #f8fdff 0%, #eef8fb 48%, #f9fbff 100%);
    }

    .brand-mark {
        @apply flex size-10 shrink-0 items-center justify-center rounded-2xl bg-slate-950 text-sm font-black text-white shadow-lg shadow-slate-900/10;
    }

    .brand-text {
        @apply text-base font-black tracking-tight text-slate-950;
    }

    .nav-link {
        @apply inline-flex min-h-11 items-center justify-center rounded-full border border-slate-200 bg-white px-4 text-sm font-bold text-slate-700 shadow-sm shadow-slate-900/5 transition hover:border-teal-300 hover:text-slate-950;
    }

    .btn-primary {
        @apply inline-flex min-h-12 items-center justify-center rounded-full bg-slate-950 px-6 text-base font-black text-white shadow-lg shadow-slate-900/15 transition hover:-translate-y-0.5 hover:bg-slate-800 focus:outline-none focus:ring-4 focus:ring-teal-200 disabled:pointer-events-none disabled:opacity-60;
    }

    .btn-accent {
        @apply inline-flex min-h-12 items-center justify-center rounded-full bg-teal-500 px-6 text-base font-black text-white shadow-lg shadow-teal-600/20 transition hover:-translate-y-0.5 hover:bg-teal-600 focus:outline-none focus:ring-4 focus:ring-teal-200 disabled:pointer-events-none disabled:opacity-60;
    }

    .btn-secondary {
        @apply inline-flex min-h-12 items-center justify-center rounded-full border border-slate-200 bg-white px-6 text-base font-bold text-slate-800 shadow-sm shadow-slate-900/5 transition hover:-translate-y-0.5 hover:border-teal-300 hover:bg-teal-50 focus:outline-none focus:ring-4 focus:ring-teal-100;
    }

    .btn-ghost {
        @apply inline-flex min-h-11 items-center justify-center rounded-full border border-slate-200 bg-white px-4 text-sm font-bold text-slate-700 shadow-sm shadow-slate-900/5 transition hover:border-slate-300 hover:bg-slate-50;
    }

    .surface {
        @apply rounded-[1.75rem] border border-white/80 bg-white/90 shadow-xl shadow-slate-900/10 ring-1 ring-slate-900/5 backdrop-blur;
    }

    .surface-tight {
        @apply rounded-2xl border border-slate-200 bg-white shadow-sm shadow-slate-900/5;
    }

    .soft-panel {
        @apply rounded-2xl border border-slate-200 bg-slate-50/80;
    }

    .eyebrow {
        @apply text-xs font-black uppercase tracking-[0.18em] text-teal-700;
    }

    .page-title {
        @apply text-3xl font-black leading-tight tracking-tight text-slate-950 sm:text-5xl;
    }

    .section-title {
        @apply text-2xl font-black tracking-tight text-slate-950 sm:text-3xl;
    }

    .body-copy {
        @apply text-base leading-7 text-slate-600 sm:text-lg;
    }

    .muted-copy {
        @apply text-sm leading-6 text-slate-500;
    }

    .field-label {
        @apply text-sm font-bold text-slate-700;
    }

    .field-input {
        @apply mt-2 min-h-12 w-full rounded-2xl border border-slate-200 bg-white px-4 text-base text-slate-950 outline-none transition placeholder:text-slate-400 focus:border-teal-400 focus:ring-4 focus:ring-teal-100;
    }

    .field-textarea {
        @apply mt-2 min-h-28 w-full rounded-2xl border border-slate-200 bg-white px-4 py-3 text-base text-slate-950 outline-none transition placeholder:text-slate-400 focus:border-teal-400 focus:ring-4 focus:ring-teal-100;
    }

    .option-tile {
        @apply flex min-h-14 cursor-pointer items-center gap-3 rounded-2xl border border-slate-200 bg-white px-4 py-3 text-sm font-bold text-slate-700 shadow-sm shadow-slate-900/5 transition hover:border-teal-300 hover:bg-teal-50 has-checked:border-teal-400 has-checked:bg-teal-50 has-checked:text-slate-950;
    }

    .option-input {
        @apply size-4 rounded border-slate-300 bg-white text-teal-500 focus:ring-teal-400;
    }

    .metric-card {
        @apply rounded-2xl border border-slate-200 bg-white p-4 shadow-sm shadow-slate-900/5;
    }

    .quick-link-card {
        @apply relative min-w-0 overflow-hidden rounded-2xl border border-slate-200 bg-white p-5 shadow-sm shadow-slate-900/5 transition hover:-translate-y-0.5 hover:border-teal-300 hover:bg-teal-50/60 hover:shadow-xl hover:shadow-teal-900/10 focus:outline-none focus:ring-4 focus:ring-teal-100;
    }

    .quick-link-card::after {
        content: '';
        position: absolute;
        inset: auto 0 0 0;
        height: 3px;
        background: linear-gradient(90deg, #14b8a6, #38bdf8, #10b981);
        opacity: 0;
        transition: opacity 180ms ease;
    }

    .quick-link-card:hover::after,
    .quick-link-card:focus-visible::after {
        opacity: 1;
    }

    .quick-link-icon {
        @apply flex size-11 shrink-0 items-center justify-center rounded-2xl border border-white/80 shadow-sm shadow-slate-900/5;
    }

    .quick-link-value {
        @apply shrink-0 text-3xl font-black leading-none text-slate-950;
    }

    .quick-link-title {
        @apply mt-4 break-words text-base font-black leading-snug text-slate-950;
    }

    .quick-link-helper {
        @apply mt-2 break-words text-sm leading-6 text-slate-500;
    }

    .chip {
        @apply inline-flex min-h-8 items-center rounded-full border border-slate-200 bg-white px-3 text-xs font-bold text-slate-600;
    }

    .chip-accent {
        @apply inline-flex min-h-8 items-center rounded-full bg-teal-100 px-3 text-xs font-black text-teal-900;
    }

    .salary-badge {
        @apply inline-flex min-h-9 items-center gap-2 rounded-full border border-emerald-200 bg-gradient-to-r from-emerald-50 to-teal-50 px-3.5 py-1.5 text-sm font-black text-emerald-900 shadow-sm shadow-emerald-900/5;
    }

    .salary-badge-strong {
        @apply rounded-3xl border border-emerald-200 bg-gradient-to-br from-emerald-50 via-white to-teal-50 p-4 shadow-sm shadow-emerald-900/10;
    }

    .alert-success {
        @apply rounded-2xl border border-teal-200 bg-teal-50 p-4 text-sm font-bold text-teal-900;
    }

    .alert-error {
        @apply rounded-2xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-900;
    }

    .alert-warn {
        @apply rounded-2xl border border-amber-200 bg-amber-50 p-4 text-sm leading-6 text-amber-900;
    }

    .sticky-action {
        @apply sticky bottom-0 -mx-4 mt-5 border-t border-slate-200 bg-white/95 px-4 py-4 shadow-2xl shadow-slate-900/10 backdrop-blur sm:static sm:mx-0 sm:border-t-0 sm:bg-transparent sm:px-0 sm:shadow-none sm:backdrop-blur-none;
    }

    .job-card {
        @apply rounded-3xl border border-slate-200 bg-white p-4 shadow-sm shadow-slate-900/5 transition hover:-translate-y-0.5 hover:border-teal-200 hover:shadow-xl hover:shadow-slate-900/10 sm:p-5;
    }

    .pagination-button {
        @apply inline-flex min-h-10 items-center justify-center rounded-full border border-slate-200 bg-white px-4 text-sm font-black text-slate-700 shadow-sm shadow-slate-900/5 transition hover:-translate-y-0.5 hover:border-teal-300 hover:bg-teal-50 hover:text-slate-950 focus:outline-none focus:ring-4 focus:ring-teal-100;
    }

    .pagination-button.is-disabled {
        @apply pointer-events-none bg-slate-100 text-slate-400 shadow-none;
    }

    .pagination-number {
        @apply inline-flex size-10 items-center justify-center rounded-full border border-slate-200 bg-white text-sm font-black text-slate-700 shadow-sm shadow-slate-900/5 transition hover:-translate-y-0.5 hover:border-teal-300 hover:bg-teal-50 hover:text-slate-950 focus:outline-none focus:ring-4 focus:ring-teal-100;
    }

    .pagination-number.is-current {
        @apply border-slate-950 bg-slate-950 text-white shadow-lg shadow-slate-900/15;
    }

    .job-detail-section {
        @apply rounded-3xl border border-slate-200 bg-white p-5 shadow-sm shadow-slate-900/5;
    }

    .job-detail-fact {
        @apply rounded-2xl border border-slate-200 bg-slate-50/80 p-4;
    }

    .job-detail-description {
        @apply space-y-4 text-base leading-8 text-slate-700;
    }

    .job-detail-description p {
        @apply rounded-2xl border border-slate-100 bg-slate-50/60 p-4;
    }

    .content-page-body {
        @apply space-y-5 text-base leading-8 text-slate-700;
    }

    .content-page-body h2 {
        @apply pt-3 text-2xl font-black leading-tight text-slate-950;
    }

    .content-page-body h3 {
        @apply pt-2 text-xl font-black leading-tight text-slate-950;
    }

    .content-page-body p {
        @apply rounded-2xl border border-slate-100 bg-slate-50/70 p-4;
    }

    .hero-image-frame {
        @apply overflow-hidden rounded-[2rem] border border-white bg-white p-2 shadow-2xl shadow-slate-900/15 ring-1 ring-slate-900/5;
    }

    .mobile-cta {
        @apply fixed inset-x-0 bottom-0 z-20 border-t border-slate-200 bg-white/95 p-3 shadow-2xl shadow-slate-900/15 backdrop-blur sm:hidden;
    }
}

@layer utilities {
    .is-pjax-loading [data-pjax-root] {
        cursor: progress;
        opacity: 0.84;
        transition: opacity 140ms ease;
    }

    .page-loader {
        position: fixed;
        inset: 0;
        z-index: 9999;
        pointer-events: none;
        opacity: 0;
        transition: opacity 160ms ease;
    }

    .page-loader.is-visible {
        opacity: 1;
    }

    .page-loader-bar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        height: 4px;
        overflow: hidden;
        background: rgba(204, 251, 241, 0.75);
    }

    .page-loader-bar::after {
        content: '';
        position: absolute;
        inset: 0 auto 0 0;
        width: 42%;
        border-radius: 999px;
        background: linear-gradient(90deg, #0f766e, #14b8a6, #38bdf8);
        box-shadow: 0 0 24px rgba(20, 184, 166, 0.45);
        animation: page-loader-bar 980ms ease-in-out infinite;
    }

    .page-loader-card {
        position: fixed;
        top: 1.35rem;
        left: 50%;
        z-index: 2;
        display: flex;
        width: 4.25rem;
        height: 4.25rem;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(153, 246, 228, 0.82);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: #0f172a;
        box-shadow:
            0 24px 60px rgba(15, 23, 42, 0.14),
            inset 0 0 0 7px rgba(240, 253, 250, 0.9);
        transform: translate(-50%, -0.45rem) scale(0.94);
        transition:
            transform 180ms ease,
            opacity 180ms ease;
    }

    .page-loader.is-visible .page-loader-card {
        transform: translate(-50%, 0) scale(1);
    }

    .page-loader-orbit {
        position: relative;
        display: block;
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 999px;
        border: 2px solid rgba(20, 184, 166, 0.16);
        animation: page-loader-spin 880ms linear infinite;
    }

    .page-loader-orbit::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        border: 2px solid transparent;
        border-top-color: #0f766e;
        border-right-color: #38bdf8;
    }

    .page-loader-orbit span {
        position: absolute;
        display: block;
        width: 0.42rem;
        height: 0.42rem;
        border-radius: 999px;
        background: #14b8a6;
        box-shadow: 0 0 16px rgba(20, 184, 166, 0.6);
    }

    .page-loader-orbit span:nth-child(1) {
        left: 50%;
        top: -0.2rem;
        transform: translateX(-50%);
    }

    .page-loader-orbit span:nth-child(2) {
        right: 0.05rem;
        bottom: 0.25rem;
        background: #38bdf8;
    }

    .page-loader-orbit span:nth-child(3) {
        bottom: 0.25rem;
        left: 0.05rem;
        background: #10b981;
    }

    .page-loader-status {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .landing-nav.is-elevated {
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    }

    .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity 520ms ease,
            transform 520ms ease;
    }

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .animate-float {
        animation: landing-float 7s ease-in-out infinite;
    }

    .faq-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 240ms ease;
    }
}

@keyframes landing-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes page-loader-bar {
    0% {
        transform: translateX(-110%);
    }

    55% {
        transform: translateX(82%);
    }

    100% {
        transform: translateX(240%);
    }
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible,
    .animate-float,
    .faq-panel,
    .page-loader-bar::after,
    .page-loader-orbit {
        animation: none;
        transform: none;
    }

    .reveal,
    .reveal.is-visible,
    .animate-float,
    .faq-panel {
        opacity: 1;
        transition: none;
    }
}
