/**
 * Nestline ana portal — lüks otel / hospitality giriş
 * Mobil öncelikli, prefers-reduced-motion destekli
 */

:root {
    --welcome-bg-deep: #060a12;
    --welcome-bg-mid: #0d1526;
    --welcome-accent: #d4b978;
    --welcome-accent-dim: rgba(212, 185, 120, 0.55);
    --welcome-accent-soft: rgba(212, 185, 120, 0.18);
    --welcome-text: #f8fafc;
    --welcome-muted: rgba(248, 250, 252, 0.68);
    --welcome-radius: 28px;
    --welcome-radius-sm: 16px;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-ui: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.welcome-page {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font-ui);
    color: var(--welcome-text);
    background: var(--welcome-bg-deep);
    -webkit-font-smoothing: antialiased;
}

.welcome-shell {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    overflow-x: hidden;
}

/* ——— Arka plan katmanları ——— */
.welcome-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(165deg, #050810 0%, #0c1428 38%, #0a1628 72%, #060d18 100%);
}

.welcome-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 55% at 15% -10%, rgba(99, 102, 241, 0.22), transparent 58%),
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(212, 185, 120, 0.14), transparent 52%),
        radial-gradient(ellipse 80% 60% at 50% 108%, rgba(30, 64, 120, 0.45), transparent 55%);
    pointer-events: none;
}

.welcome-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% 50%, transparent 0%, rgba(5, 8, 16, 0.85) 100%);
    pointer-events: none;
}

/* Yüzen ışık küreleri */
.welcome-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
}

.welcome-orb--1 {
    width: min(55vw, 420px);
    height: min(55vw, 420px);
    top: -8%;
    left: -12%;
    background: rgba(99, 102, 241, 0.35);
    animation: welcome-float-a 22s ease-in-out infinite;
}

.welcome-orb--2 {
    width: min(45vw, 360px);
    height: min(45vw, 360px);
    top: 35%;
    right: -15%;
    background: rgba(212, 185, 120, 0.2);
    animation: welcome-float-b 26s ease-in-out infinite;
}

.welcome-orb--3 {
    width: min(50vw, 380px);
    height: min(50vw, 380px);
    bottom: -18%;
    left: 25%;
    background: rgba(16, 185, 129, 0.12);
    animation: welcome-float-c 24s ease-in-out infinite;
}

@keyframes welcome-float-a {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(6%, 8%) scale(1.06);
    }
}

@keyframes welcome-float-b {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-5%, 6%) scale(1.05);
    }
}

@keyframes welcome-float-c {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(4%, -5%) scale(1.04);
    }
}

.welcome-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.welcome-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

/* ——— Hero ——— */
.welcome-brand-line {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--welcome-accent), transparent);
    border-radius: 2px;
    margin: 0 auto clamp(0.85rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    animation: welcome-fade-up 0.9s ease backwards;
}

.welcome-hero {
    text-align: center;
    margin-bottom: clamp(2rem, 5.5vw, 3.25rem);
}

.welcome-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: none;
    color: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    margin-bottom: 1.25rem;
    animation: welcome-fade-up 0.9s ease 0.05s backwards;
}

.welcome-hero-badge__brand {
    color: var(--welcome-accent);
    font-weight: 700;
    letter-spacing: 0.18em;
}

.welcome-hero-badge i {
    color: var(--welcome-accent);
    font-size: 0.75rem;
    filter: drop-shadow(0 0 10px rgba(212, 185, 120, 0.4));
}

.welcome-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 6.5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    animation: welcome-fade-up 0.95s ease 0.12s backwards;
}

.welcome-hero__title .welcome-icon-hotel {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.28em;
    font-size: 0.78em;
    color: var(--welcome-accent);
    filter: drop-shadow(0 4px 20px rgba(212, 185, 120, 0.45));
}

.welcome-hero__title-text {
    color: #faf8f5;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .welcome-hero__title-text {
        background: linear-gradient(180deg, #ffffff 0%, #f4f0e8 38%, #d4c4a8 95%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: none;
        filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.35));
    }
}

.welcome-hero .welcome-sub {
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    font-weight: 400;
    color: var(--welcome-muted);
    max-width: 26rem;
    margin: 0 auto;
    line-height: 1.65;
    letter-spacing: 0.01em;
    animation: welcome-fade-up 0.95s ease 0.2s backwards;
}

.welcome-hero__rule {
    width: min(200px, 50vw);
    height: 1px;
    margin: clamp(1.35rem, 3vw, 1.75rem) auto 0;
    background: linear-gradient(90deg, transparent, rgba(212, 185, 120, 0.45), transparent);
    animation: welcome-fade-up 0.95s ease 0.28s backwards;
}

@keyframes welcome-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ——— Kart grid ——— */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.1rem, 2.8vw, 1.65rem);
}

@media (min-width: 640px) {
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-grid .portal-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 440px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .portal-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
        gap: 1.5rem;
    }

    .portal-grid .portal-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

.portal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(1.65rem, 3.5vw, 2.25rem);
    padding-top: calc(clamp(1.65rem, 3.5vw, 2.25rem) + 8px);
    border-radius: var(--welcome-radius);
    text-decoration: none;
    color: #0c1222;
    background: linear-gradient(168deg, #ffffff 0%, #fafbfc 42%, #f1f5f9 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 4px 6px rgba(15, 23, 42, 0.03),
        0 20px 48px rgba(15, 23, 42, 0.09),
        0 40px 80px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
    min-height: 100%;
    outline: none;
    animation: welcome-card-in 0.85s ease backwards;
}

.portal-grid .portal-card:nth-child(1) {
    animation-delay: 0.15s;
}

.portal-grid .portal-card:nth-child(2) {
    animation-delay: 0.28s;
}

.portal-grid .portal-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes welcome-card-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 1;
    border-radius: var(--welcome-radius) var(--welcome-radius) 0 0;
    background: linear-gradient(90deg, #4f46e5, #818cf8, #a5b4fc);
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.35);
}

.portal-card--sirket::before {
    background: linear-gradient(90deg, #4338ca, #6366f1, #818cf8);
    box-shadow: 0 2px 12px rgba(67, 56, 202, 0.35);
}

.portal-card--featured::before {
    background: linear-gradient(90deg, #92400e, #d97706, var(--welcome-accent));
    box-shadow: 0 2px 14px rgba(212, 185, 120, 0.4);
}

.portal-card--housekeeping::before {
    background: linear-gradient(90deg, #065f46, #059669, #34d399);
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.3);
}

.portal-card::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -32%;
    width: 85%;
    height: 85%;
    z-index: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.portal-card--sirket::after {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
}

.portal-card--featured::after {
    background: radial-gradient(circle at center, rgba(212, 185, 120, 0.15) 0%, transparent 60%);
}

.portal-card--housekeeping::after {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.11) 0%, transparent 65%);
}

.portal-card > * {
    position: relative;
    z-index: 2;
}

.portal-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 0 0 1px rgba(99, 102, 241, 0.1),
        0 24px 56px rgba(99, 102, 241, 0.1),
        0 48px 96px rgba(0, 0, 0, 0.2);
}

.portal-card--sirket:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 0 0 1px rgba(79, 70, 229, 0.18),
        0 24px 56px rgba(79, 70, 229, 0.12),
        0 48px 96px rgba(0, 0, 0, 0.2);
}

.portal-card--featured:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 0 0 1px rgba(212, 185, 120, 0.35),
        0 24px 56px rgba(212, 185, 120, 0.14),
        0 48px 96px rgba(0, 0, 0, 0.2);
}

.portal-card--housekeeping:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 0 0 1px rgba(5, 150, 105, 0.2),
        0 24px 56px rgba(16, 185, 129, 0.12),
        0 48px 96px rgba(0, 0, 0, 0.2);
}

.portal-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 0 0 3px var(--welcome-bg-deep), 0 0 0 6px var(--welcome-accent);
}

.portal-card--featured {
    border-color: rgba(212, 185, 120, 0.28);
    background: linear-gradient(168deg, #fffefa 0%, #fffbf3 32%, #faf6ee 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 0 0 1px rgba(212, 185, 120, 0.15),
        0 20px 48px rgba(212, 185, 120, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1024px) {
    .portal-card--featured {
        transform: scale(1.03);
    }

    .portal-card--featured:hover {
        transform: scale(1.03) translateY(-10px);
    }
}

.portal-card__tag {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    z-index: 3;
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #713f12;
    background: linear-gradient(145deg, #fffbeb 0%, #fde68a 45%, #fcd34d 100%);
    padding: 0.38rem 0.72rem;
    border-radius: 10px;
    border: 1px solid rgba(180, 83, 9, 0.18);
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.15);
}

.portal-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(150deg, #ffffff 0%, #eef2ff 100%);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 12px 32px rgba(79, 70, 229, 0.14);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.portal-card:hover .portal-card__icon {
    transform: scale(1.06) translateY(-2px);
}

.portal-card--sirket .portal-card__icon {
    background: linear-gradient(150deg, #ffffff 0%, #eef2ff 100%);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.2);
}

.portal-card--featured .portal-card__icon {
    background: linear-gradient(150deg, #ffffff 0%, #fff7ed 100%);
    color: #b45309;
    border-color: rgba(212, 185, 120, 0.32);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 12px 32px rgba(212, 185, 120, 0.18);
}

.portal-card--housekeeping .portal-card__icon {
    background: linear-gradient(150deg, #ffffff 0%, #ecfdf5 100%);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 12px 32px rgba(5, 150, 105, 0.14);
}

.portal-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 1.95rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.portal-card__desc {
    font-size: 0.9rem;
    line-height: 1.62;
    color: #64748b;
    margin: 0 0 1.2rem;
    flex: 1;
    max-width: 22rem;
    font-weight: 400;
}

.portal-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4338ca;
    margin-top: auto;
    padding: 0.55rem 1.1rem;
    margin-left: -1.1rem;
    border-radius: 999px;
    transition: background 0.3s ease, color 0.25s ease, box-shadow 0.3s ease;
}

.portal-card--featured .portal-card__cta {
    color: #b45309;
}

.portal-card--housekeeping .portal-card__cta {
    color: #047857;
}

.portal-card--sirket:hover .portal-card__cta {
    background: rgba(99, 102, 241, 0.1);
    color: #3730a3;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

.portal-card--featured:hover .portal-card__cta {
    background: rgba(212, 185, 120, 0.16);
    color: #92400e;
    box-shadow: 0 4px 16px rgba(212, 185, 120, 0.12);
}

.portal-card--housekeeping:hover .portal-card__cta {
    background: rgba(16, 185, 129, 0.11);
    color: #065f46;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.portal-card__cta i {
    font-size: 0.76rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-card:hover .portal-card__cta i {
    transform: translateX(6px);
}

/* ——— Footer ——— */
.welcome-foot {
    margin-top: clamp(2.25rem, 5vw, 3.25rem);
    text-align: center;
    animation: welcome-fade-up 0.9s ease 0.5s backwards;
}

.welcome-foot-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(248, 250, 252, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.welcome-foot-inner .welcome-foot-dot {
    opacity: 0.45;
}

/* ——— Erişilebilirlik: hareket azaltma ——— */
@media (prefers-reduced-motion: reduce) {
    .welcome-orb,
    .welcome-orb--1,
    .welcome-orb--2,
    .welcome-orb--3 {
        animation: none;
    }

    .welcome-brand-line,
    .welcome-hero-badge,
    .welcome-hero__title,
    .welcome-hero .welcome-sub,
    .welcome-hero__rule,
    .welcome-foot {
        animation: none;
    }

    .portal-card {
        animation: none;
    }

    .portal-card,
    .portal-card:hover,
    .portal-card:focus-visible {
        transition: none;
        transform: none;
    }

    .portal-card--featured {
        transform: none !important;
    }

    .portal-card--featured:hover {
        transform: none !important;
    }

    .portal-card:hover .portal-card__icon {
        transform: none;
    }

    .portal-card:hover .portal-card__cta i {
        transform: none;
    }
}
