﻿/* =========================================================
   ARCIX - custom-mobile-fixes.css  (FULL)
   File: /arcix/assets/css/custom-mobile-fixes.css

   AMAÇ:
   ✅ SADECE MOBIL (max-width: 991.98px) + scope class'larla güvenli
   ✅ Projects sayfası: .apx-projects-page
      - Mobilde breadcrumb tamamen gizle (Anasayfa / Projeler yazısı kalksın)
      - Proje listesi mobilde image + content alt alta (desktop bozulmaz)
      - Parallax/transform mobilde iptal (patlama yapmasın)
      - Resim üstündeki kategori etiketi mobilde gizle
   ✅ Project Details sayfası (portfolio-details):
      - "numbers" alanı kart gibi, düzgün hizalı
      - Prev/Next alanı profesyonel kart düzeni (responsive)
      - Paylaş alanı: ikonlar + başlık düzeni
   ========================================================= */


/* =========================================================
   PROJECTS PAGE - MOBILE: Breadcrumb tamamen gizle
   Scope: .apx-projects-page
   ========================================================= */
@media (max-width: 991.98px) {

    html, body {
        overflow-x: hidden;
    }

    /* Sadece Projects HERO breadcrumb (Anasayfa / Projeler) tamamen kalksın */
    .apx-projects-page .page-title.apx-projects-hero ul.breadcrumb,
    .apx-projects-page .page-title.apx-projects-hero ul.page-breadcrumb {
        display: none !important;
    }

    /* Hero biraz daha temiz dursun */
    .apx-projects-page .page-title.apx-projects-hero {
        padding: 105px 0 85px !important;
        background-position: center center !important;
        background-size: cover !important;
        position: relative !important;
        overflow: hidden !important;
    }

        .apx-projects-page .page-title.apx-projects-hero .auto-container {
            position: relative !important;
            z-index: 2 !important;
            text-align: center !important;
        }
}


/* =========================================================
   PROJECTS LIST (MOBILE) - SAFE STACK (image + content)
   Scope: .apx-projects-page
   Desktop asla bozulmaz
   ========================================================= */
@media (max-width: 991.98px) {

    .apx-projects-page .portfolio-section .wrapper-box,
    .apx-projects-page .portfolio-section .portfolio-block,
    .apx-projects-page .portfolio-section .portfolio-block li,
    .apx-projects-page .portfolio-section .portfolio-block li .center-box {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

        .apx-projects-page .portfolio-section .portfolio-block li .center-box {
            display: block !important;
        }

            .apx-projects-page .portfolio-section .portfolio-block li .center-box .image {
                width: 100% !important;
                max-width: 100% !important;
                position: relative !important;
                overflow: hidden !important;
            }

                .apx-projects-page .portfolio-section .portfolio-block li .center-box .image img {
                    width: 100% !important;
                    height: auto !important;
                    display: block !important;
                }

                /* Mobilde resim üstü kategori etiketi gizle */
                .apx-projects-page .portfolio-section .portfolio-block li .center-box .image .category {
                    display: none !important;
                }

            /* Content kutusu: absolute/parallax ile patlamasın */
            .apx-projects-page .portfolio-section .portfolio-block li .center-box .content {
                width: 100% !important;
                max-width: 100% !important;
                position: relative !important;
                left: auto !important;
                right: auto !important;
                top: auto !important;
                bottom: auto !important;
                transform: none !important;
                will-change: auto !important;
                padding: 22px 18px !important;
                margin: 0 !important;
                background: #fff !important;
            }

                /* Parallax kaynaklı transformleri iptal */
                .apx-projects-page [data-parallax],
                .apx-projects-page .portfolio-section .portfolio-block li .center-box .content[data-parallax] {
                    transform: none !important;
                }

                .apx-projects-page .portfolio-section .portfolio-block li .center-box .content h3 {
                    word-break: break-word;
                }

                /* "Mimari Proje" satırı: ikon + metin hizalı */
                .apx-projects-page .portfolio-section .portfolio-block li .center-box .content .location {
                    display: inline-flex !important;
                    align-items: center !important;
                    gap: 8px !important;
                    margin-bottom: 10px !important;
                    line-height: 1.2 !important;
                    max-width: 100% !important;
                    white-space: normal !important;
                    overflow-wrap: anywhere !important;
                }

                    .apx-projects-page .portfolio-section .portfolio-block li .center-box .content .location i {
                        font-size: 16px !important;
                        opacity: .85 !important;
                        flex: 0 0 auto !important;
                    }

                /* Buton: full width, düz */
                .apx-projects-page .portfolio-section .portfolio-block li .center-box .content .link-btn a.theme-btn {
                    width: 100% !important;
                    max-width: 100% !important;
                    display: inline-block !important;
                    text-align: center !important;
                    border-radius: 0 !important;
                }
}


/* =========================================================
   PROJECT DETAILS - Profesyonel Alt Bölüm (Numbers + Prev/Next)
   Scope: .portfolio-details
   ========================================================= */

/* Numbers alanını kart gibi yap */
.portfolio-details .numbers-md {
    margin-top: 40px;
}

    .portfolio-details .numbers-md .item {
        background: #ffffff;
        border: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 18px 40px rgba(0,0,0,.06);
        border-radius: 14px;
        padding: 22px 18px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .portfolio-details .numbers-md .item h2 {
            margin: 0 0 8px;
            line-height: 1;
            font-weight: 800;
            letter-spacing: .2px;
        }

        .portfolio-details .numbers-md .item span {
            opacity: .75;
            font-weight: 600;
        }

/* Prev/Next alanını kart düzenine çek */
.portfolio-details .post-pagination {
    margin-top: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

    .portfolio-details .post-pagination .prev-post,
    .portfolio-details .post-pagination .next-post {
        background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 18px 40px rgba(0,0,0,.06);
        border-radius: 16px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 140px 1fr;
        align-items: stretch;
        min-height: 120px;
    }

        .portfolio-details .post-pagination .prev-post .image,
        .portfolio-details .post-pagination .next-post .image {
            margin: 0;
            height: 100%;
            overflow: hidden;
        }

            .portfolio-details .post-pagination .prev-post .image img,
            .portfolio-details .post-pagination .next-post .image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        .portfolio-details .post-pagination .prev-post p,
        .portfolio-details .post-pagination .next-post p {
            margin: 0;
            padding: 16px 16px 0;
            font-weight: 800;
            opacity: .6;
        }

        .portfolio-details .post-pagination .prev-post h4,
        .portfolio-details .post-pagination .next-post h4 {
            margin: 0;
            padding: 6px 16px 16px;
            font-weight: 900;
            line-height: 1.2;
        }

    .portfolio-details .post-pagination a {
        color: inherit;
        text-decoration: none;
    }

        .portfolio-details .post-pagination a:hover {
            text-decoration: underline;
        }

/* Mobile: Prev/Next alt alta */
@media (max-width: 991.98px) {
    .portfolio-details .post-pagination {
        grid-template-columns: 1fr;
    }

        .portfolio-details .post-pagination .prev-post,
        .portfolio-details .post-pagination .next-post {
            grid-template-columns: 120px 1fr;
        }
}

/* Paylaş alanı (social-links) daha profesyonel */
.portfolio-details .links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

    .portfolio-details .links .share-label {
        font-weight: 900;
        letter-spacing: .2px;
        margin-right: 10px;
    }

    .portfolio-details .links .social-links {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .portfolio-details .links .social-links li {
            margin: 0;
            padding: 0;
        }

        .portfolio-details .links .social-links a {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,.06);
            border: 1px solid rgba(0,0,0,.08);
            transition: all .15s ease;
            text-decoration: none;
        }

            .portfolio-details .links .social-links a:hover {
                transform: translateY(-1px);
                background: rgba(0,0,0,.10);
            }

    .portfolio-details .links .tag span {
        display: inline-flex;
        padding: 10px 12px;
        border-radius: 999px;
        background: rgba(0,0,0,.06);
        border: 1px solid rgba(0,0,0,.08);
        font-weight: 700;
        margin: 0 8px 8px 0;
    }
