/* Phone mockup — premium app preview */

.hero__visual {
    position: relative;
    min-height: 580px;
    animation: hero-fade-up 0.8s 0.15s ease both;
}

.hero-phone {
    position: relative;
    width: 100%;
    min-height: 580px;
    z-index: 2;
    overflow: visible;
}

.hero-phone__shift {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    width: 100%;
    min-height: 580px;
    transform: translateX(40px);
    --phone-half: 160px;
    --float-half: 110px;
}

.hero-phone-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(33, 150, 243, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-phone__frame {
    width: min(300px, 100%);
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 40px 80px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 2px rgba(15, 23, 42, 0.5);
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.hero-phone__frame::before {
    content: '';
    position: absolute;
    top: 120px;
    right: -2px;
    width: 3px;
    height: 48px;
    background: #334155;
    border-radius: 0 2px 2px 0;
}

.hero-phone__screen {
    background: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.hero-phone__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}

.hero-phone__status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--ink-2);
}

.hero-phone__appbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 16px 10px;
}

.hero-phone__greeting {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-phone__subtitle {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.hero-phone__notif {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hero-phone__notif span {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f8fafc;
}

.hero-phone__citybar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 16px 10px;
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    width: fit-content;
    box-shadow: var(--shadow);
}

.hero-phone__citybar .bi-chevron-down {
    font-size: 10px;
    color: var(--muted);
}

.hero-phone__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.hero-phone__search .bi-search {
    color: var(--blue);
    font-size: 13px;
}

.hero-phone__search span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-phone__filter-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: var(--blue-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.hero-phone__chips {
    display: flex;
    gap: 6px;
    padding: 0 16px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-phone__chips::-webkit-scrollbar { display: none; }

.hero-phone__chip {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--muted);
}

.hero-phone__chip.is-active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.hero-phone__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
}

.hero-phone__section-head small {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
}

.hero-phone__cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
    flex: 1;
}

.hero-phone__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-phone__card--featured {
    border-color: rgba(33, 150, 243, 0.25);
    box-shadow: 0 10px 28px rgba(33, 150, 243, 0.12);
    transition: opacity 0.28s ease;
}

.hero-phone__card-banner {
    height: 56px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-phone__card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-phone__card-body {
    padding: 0 12px 12px;
    margin-top: -18px;
    position: relative;
    z-index: 1;
}

.hero-phone__card--compact {
    padding: 10px 12px;
}

.hero-phone__card-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: start;
}

.hero-phone__card--compact .hero-phone__card-top {
    margin-bottom: 8px;
}

.hero-phone__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-soft), #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 15px;
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
    position: relative;
}

.hero-phone__avatar--img {
    background-size: cover;
    background-position: center;
}

.hero-phone__online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.hero-phone__online-dot.is-off {
    background: #94a3b8;
}

.hero-phone__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.hero-phone__name i {
    color: var(--blue);
    font-size: 11px;
}

.hero-phone__loc {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

.hero-phone__online {
    color: #16a34a;
    font-weight: 600;
}

.hero-phone__meta {
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px;
}

.hero-phone__rating {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
    background: #fef9c3;
    padding: 4px 7px;
    border-radius: 8px;
    white-space: nowrap;
}

.hero-phone__rating i { color: #eab308; }

.hero-phone__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0 10px;
}

.hero-phone__tags span {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    border-radius: 6px;
}

.hero-phone__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hero-phone__price {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.2;
}

.hero-phone__price small {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
}

.hero-phone__avail {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 1px;
}

.hero-phone__btn {
    font-size: 10px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #1565c0);
    padding: 7px 12px;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    white-space: nowrap;
}

.hero-phone__pill {
    font-size: 9px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 4px 8px;
    border-radius: 6px;
}

.hero-phone__tabbar {
    display: flex;
    justify-content: space-around;
    padding: 8px 8px 12px;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.hero-phone__tabbar span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 8px;
    font-weight: 600;
    color: var(--muted);
}

.hero-phone__tabbar span i {
    font-size: 14px;
}

.hero-phone__tabbar span.is-active {
    color: var(--blue);
}

.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: var(--shadow-lg);
    z-index: 4;
}

.hero-badge i {
    font-size: 18px;
    color: var(--blue);
}

.hero-badge strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
}

.hero-badge span {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-badge--stat {
    top: 4%;
    right: 0;
    left: auto;
    max-width: 220px;
    animation: phone-float-in 0.8s 0.3s ease both, phone-float-y 5.5s 1s ease-in-out infinite;
}

.hero-badge--stat span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 13px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    max-width: 220px;
    z-index: 4;
    backdrop-filter: blur(10px);
}

.hero-float > div:last-child {
    min-width: 0;
    flex: 1;
}

.hero-float__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.hero-float__icon--success {
    background: #dcfce7;
    color: #16a34a;
}

.hero-float__icon--msg {
    background: var(--blue-soft);
    color: var(--blue);
}

.hero-float strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-float span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-float time {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

.hero-float--1 {
    top: 22%;
    right: auto;
    left: calc(50% - var(--phone-half) - var(--float-half));
    animation: phone-float-in 0.8s 0.5s ease both, phone-float-y 5s 1.3s ease-in-out infinite;
}

.hero-float--2 {
    bottom: 18%;
    right: 0;
    left: auto;
    animation: phone-float-in 0.8s 0.9s ease both, phone-float-y 6s 1.7s ease-in-out infinite reverse;
}

.hero-float--2 strong,
.hero-float--2 span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

@keyframes phone-float-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes phone-float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Orbit bubbles — telefon yan boşluğunda, çerçevenin altında kalır */
.hero-orbits {
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 0;
    width: min(424px, 100%);
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.hero-orbit {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
    opacity: 0;
    will-change: transform, opacity;
    animation: orbit-rise 5s linear infinite;
}

.hero-orbit i {
    font-size: 16px;
    color: var(--blue);
}

/* Yan şeritte: sol 0 / sağ 0 = telefon dışı boşluk */
.hero-orbit--1 {
    left: 0;
    top: 42%;
    animation-delay: 0s;
}

.hero-orbit--2 {
    right: 0;
    top: 42%;
    animation-delay: 1.6s;
}

.hero-orbit--3 {
    right: 4px;
    top: 62%;
    animation-delay: 3.2s;
}

@keyframes orbit-rise {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    15% {
        opacity: 0.65;
    }
    85% {
        opacity: 0.65;
    }
    100% {
        opacity: 0;
        transform: translateY(-32px);
    }
}

@media (max-width: 960px) {
    .hero__visual { min-height: 500px; }
    .hero-phone,
    .hero-phone__shift { min-height: 500px; }
    .hero-float--1 { left: calc(50% - var(--phone-half) - 90px); }
}

@media (max-width: 768px) {
    .hero-orbits { display: none; }
    .hero-float { max-width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-float,
    .hero-orbit,
    .hero-orbits,
    .hero-badge--stat,
    .hero-phone__card--featured { animation: none !important; }
    .hero-orbit { opacity: 0.5; }
}
