/**
 * Servercim — mobil uyumluluk (max-width: 1023px ve altı)
 * Masaüstü stilleri: main.css, pages.css, sayfa özel CSS
 */

/* —— Genel —— */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(14px, 4vw, 24px);
    padding-right: clamp(14px, 4vw, 24px);
}

main {
    overflow-x: clip;
}

/* Tablolar taşmasın */
table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* —— Header mobil / masaüstü ayrımı —— */
.site-header__top--desktop {
    display: block;
}

.site-header__top--mobile {
    display: none;
}

.nav-mobile-actions {
    display: none;
}

.nav-auth--desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-auth--desktop {
        display: flex;
    }
}

@media (max-width: 1023px) {
    .site-header__top--desktop {
        display: none;
    }

    .site-header__top--mobile {
        display: block;
    }

    .site-header__top-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.45rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .site-header__top-mobile::-webkit-scrollbar {
        display: none;
    }

    .site-header__top-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
        padding: 0.35rem 0.65rem;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
        color: #94a3b8;
        text-decoration: none;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: color 0.2s, border-color 0.2s, background 0.2s;
    }

    .site-header__top-chip .icon {
        width: 13px;
        height: 13px;
        color: #ff8c00;
    }

    .site-header__top-chip--accent {
        color: #ff8c00;
        border-color: rgba(255, 140, 0, 0.35);
        background: rgba(255, 140, 0, 0.1);
    }

    .site-header__top-chip:hover {
        color: #fff;
        border-color: rgba(255, 140, 0, 0.45);
    }

    /* Ana nav satırı */
    .nav-container {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
        align-items: center;
    }

    .nav-side.left {
        min-width: 0;
    }

    .nav-side.right {
        flex-shrink: 0;
    }

    .site-logo__wordmark {
        max-width: 118px;
        height: 22px;
    }

    .site-logo__icon-box {
        width: 38px;
        height: 38px;
        padding: 6px;
    }

    .nav-mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .nav-mobile-actions__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        text-decoration: none;
        flex-shrink: 0;
        transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

    .nav-mobile-actions__btn .icon {
        width: 18px;
        height: 18px;
    }

    .nav-mobile-actions__btn:hover {
        border-color: rgba(255, 140, 0, 0.4);
        color: #ff8c00;
    }

    .nav-cart {
        position: relative;
    }

    .nav-cart__badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ff8c00;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        line-height: 16px;
        text-align: center;
        pointer-events: none;
    }

    .nav-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        height: 40px;
        padding: 0 0.75rem 0 0.65rem;
        border: 1px solid rgba(255, 140, 0, 0.45);
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0.08));
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
        transition: border-color 0.2s, background 0.2s, color 0.2s;
        font-family: inherit;
    }

    .nav-menu-btn__icon {
        width: 18px;
        height: 18px;
        color: #ff8c00;
    }

    .nav-menu-btn__label {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .nav-menu-btn:hover,
    .nav-menu-btn[aria-expanded="true"] {
        border-color: #ff8c00;
        background: rgba(255, 140, 0, 0.22);
        color: #ff8c00;
    }

    .site-header__nav {
        padding: 0.6rem 0;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}

@media (max-width: 380px) {
    .nav-menu-btn__label {
        display: none;
    }

    .nav-menu-btn {
        width: 40px;
        padding: 0;
    }
}

/* —— Mobil menü çekmecesi —— */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1201;
    width: min(100%, 320px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #1c2230;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.mobile-nav__close .icon {
    width: 20px;
    height: 20px;
}

.mobile-nav__intro {
    margin: 0;
    padding: 0.65rem 1rem 0.5rem;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.mobile-nav__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
}

.mobile-nav__group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav__group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    cursor: pointer;
    list-style: none;
}

.mobile-nav__group-title::-webkit-details-marker {
    display: none;
}

.mobile-nav__group-icon {
    width: 16px;
    height: 16px;
    color: #ff8c00;
    flex-shrink: 0;
}

.mobile-nav__chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    opacity: 0.4;
    transition: transform 0.2s;
}

.mobile-nav__group[open] .mobile-nav__chevron {
    transform: rotate(180deg);
}

.mobile-nav__drawer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.mobile-nav__drawer-btn:hover,
.mobile-nav__drawer-btn:focus {
    background: rgba(255, 140, 0, 0.06);
    color: #ff8c00;
}

.mobile-nav__drawer-btn-label {
    flex: 1;
}

.mobile-nav__drawer-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    opacity: 0.45;
    transform: rotate(180deg);
    color: #ff8c00;
}

.mobile-nav__list {
    margin: 0;
    padding: 0 0 0.5rem;
    list-style: none;
}

.mobile-nav__link {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2.35rem;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.06);
}

.mobile-nav__link--btn {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.mobile-nav__foot {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

.mobile-nav__btn--primary {
    background: linear-gradient(135deg, #ff8c00, #ffab40);
    color: #131722;
}

.mobile-nav__btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    background: transparent;
}

body.mobile-nav-open {
    overflow: hidden;
}

/* —— Footer (mobil — aside kartı, resimdeki gibi) —— */
@media (max-width: 959px) {
    .footer-immersive {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        background: #131722;
    }

    .footer-v3__grid {
        display: block;
        border-bottom: none;
        overflow: visible;
    }

    .footer-v3__aside {
        border-right: none !important;
        box-shadow: inset 0 3px 0 #ff8c00;
        padding: 1.25rem 1rem 1.1rem;
        background: #1c2230;
    }

    .footer-aside__inner {
        gap: 14px;
        align-items: stretch;
        text-align: left;
    }

    .footer-aside__intro .site-logo {
        justify-content: flex-start;
    }

    .footer-aside__lead {
        margin-top: 12px;
        font-size: 12px;
        line-height: 1.65;
        color: rgba(203, 213, 225, 0.78);
    }

    .footer-aside__highlights {
        margin-top: 12px;
        gap: 6px;
    }

    .footer-aside__pill {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 6px;
        color: rgba(255, 255, 255, 0.9);
        background: transparent;
        border: 1px solid rgba(255, 140, 0, 0.35);
    }

    .footer-aside__contact-box {
        padding: 14px;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.22);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-aside__contact-title {
        font-size: 11px;
        letter-spacing: 0.14em;
        margin-bottom: 6px;
    }

    .footer-aside__contact-desc {
        display: block;
        margin-bottom: 12px;
        font-size: 11px;
        line-height: 1.55;
        color: rgba(203, 213, 225, 0.55);
    }

    .footer-aside__contacts {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }

    .footer-aside__card {
        flex-direction: row;
        align-items: center;
        gap: 9px;
        padding: 10px;
        min-height: 0;
        height: auto;
        background: rgba(0, 0, 0, 0.28);
    }

    .footer-aside__card-body {
        min-width: 0;
        text-align: left;
    }

    .footer-aside__card-icon {
        width: 32px;
        height: 32px;
    }

    .footer-aside__card-label {
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    .footer-aside__card-value {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.25;
    }

    .footer-aside__social-wrap {
        padding-top: 2px;
    }

    .footer-aside__social-label {
        margin-bottom: 8px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .footer-aside__social a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.25);
    }

    .footer-v3__main--desktop {
        display: none !important;
    }

    .footer-v3__legal-wrap {
        padding: 0.85rem 1rem 0;
        background: #131722;
    }

    .footer-v3__legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.65rem;
    }

    .footer-v3__copy {
        font-size: 9px;
        line-height: 1.4;
        letter-spacing: 0.06em;
    }

    .payment-logos-final {
        justify-content: center;
        gap: 0.65rem;
    }
}

@media (max-width: 380px) {
    .footer-aside__contacts {
        grid-template-columns: 1fr !important;
    }
}

/* —— Ana sayfa —— */
@media (max-width: 1023px) {
    .hero-visual-wrap {
        margin-top: 2rem;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        transform: scale(0.88);
        transform-origin: center top;
    }

    .quality-bento {
        grid-template-columns: 1fr !important;
    }

    .service-tile--domain,
    .service-tile--hosting,
    .service-tile--vds,
    .service-tile--ssl,
    .quality-hub {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .quality-hub {
        min-height: auto;
    }

    .reviews-slider__slide {
        min-width: 100%;
    }

    .domain-search-hero input,
    .domain-search-hero button {
        width: 100%;
    }

    .domain-search-hero form {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    section.bg-servercim-dark.pt-24 {
        padding-top: 3rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-visual-wrap {
        display: none;
    }

    #quality h2,
    .text-5xl {
        font-size: clamp(1.65rem, 7vw, 2.25rem) !important;
    }

    #quality.py-40 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #quality .mb-32 {
        margin-bottom: 2rem !important;
    }

    .tld-marquee__track {
        animation-duration: 28s;
    }

    .px-20 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-7,
    .py-20 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
}

/* —— İç sayfalar (pages.css) —— */
@media (max-width: 767px) {
    .page-hero {
        padding: 2.5rem 0 2rem;
    }

    .page-section {
        padding: 2rem 0;
    }

    .page-packages,
    .page-features__grid {
        grid-template-columns: 1fr;
    }
}

/* —— Domain / Hosting / Sunucu araçları —— */
@media (max-width: 991px) {
    .dt-hero {
        padding: 2rem 0 2.5rem;
    }

    .dt-hero__grid {
        grid-template-columns: 1fr;
    }

    .dt-nav,
    .ht-nav,
    .sv-nav,
    .em-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dt-nav::-webkit-scrollbar,
    .ht-nav::-webkit-scrollbar {
        display: none;
    }

    .dt-nav a,
    .ht-nav a {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .ht-layout,
    .dt-layout,
    .sv-layout,
    .em-layout {
        grid-template-columns: 1fr !important;
    }

    .ht-sidebar,
    .dt-sidebar,
    .sv-sidebar {
        position: static;
        max-height: none;
    }

    .ht-banner__inner,
    .sv-banner__inner {
        flex-direction: column;
    }

    .ht-banner__spot,
    .sv-banner__spot {
        width: 100%;
        min-width: 0;
    }

    .dt-form__row--2 {
        grid-template-columns: 1fr;
    }

    .ht-preview-grid,
    .sv-pkg-cards,
    .sv-pkg-cards--horizontal {
        grid-template-columns: 1fr !important;
    }
}

/* —— Kurumsal belge merkezi —— */
@media (max-width: 959px) {
    .kr-shell {
        grid-template-columns: 1fr !important;
    }

    .kr-nav {
        position: static;
    }

    .kr-nav__list {
        max-height: none;
    }

    .kr-hub__hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .kr-hub__stats {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* —— Araçlar hub & araç sayfaları —— */
@media (max-width: 1023px) {
    .araclar-mega {
        grid-template-columns: 1fr;
    }

    .araclar-hero__inner {
        grid-template-columns: 1fr;
    }

    .araclar-hero__stats {
        width: 100%;
    }

    .araclar-hero__stats li {
        flex: 1;
        min-width: 0;
    }

    .wt-banner__inner {
        flex-direction: column;
    }

    .wt-banner__spot {
        display: none;
    }

    .wt-nav__row {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .wt-nav__link {
        flex-shrink: 0;
        white-space: nowrap;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .wt-split,
    .wt-page--araclar .wt-tool-shell .wt-split {
        grid-template-columns: 1fr !important;
    }

    .wt-hash-grid {
        grid-template-columns: 1fr;
    }

    .wt-stat-row,
    .wt-stat-grid--6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .firsatlar-deals,
    .deal-countdown__grid {
        grid-template-columns: 1fr !important;
    }

    .firsatlar-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wt-stat-row {
        grid-template-columns: 1fr;
    }

    .wt-btn-row {
        flex-direction: column;
    }

    .wt-btn-row .wt-btn {
        width: 100%;
        justify-content: center;
    }
}

/* —— Blog —— */
@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-hero__inner {
        flex-direction: column;
    }
}

/* —— Yazılım —— */
@media (max-width: 991px) {
    .sv-nav-bar__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .yh-grid,
    .yu-layout {
        grid-template-columns: 1fr !important;
    }
}

/* —— Kurumsal drawer mobil —— */
@media (max-width: 1023px) {
    .side-drawer {
        width: min(100%, 300px);
    }
}

/* Masaüstünde mobil öğeler gizli */
@media (min-width: 1024px) {
    .site-header__top--mobile,
    .nav-mobile-actions,
    .nav-cart--mobile,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}
