/* =============================================
   Yazılımcı Kirala - Global Mobile Responsive CSS
   ONLY safe, non-breaking media query overrides
   ============================================= */

/* ---- NAVBAR (tüm sayfalar) ---- */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .navbar-collapse {
        background: #fff;
        padding: 12px 0;
        border-top: 1px solid #ebebeb;
        margin-top: 8px;
    }

    .navbar .nav-link {
        padding: 10px 4px !important;
        border-bottom: 1px solid #f5f5f5;
    }

    .navbar .btn-outline-dark {
        margin-top: 8px;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ---- HERO SECTION (index.php) ---- */
@media (max-width: 767.98px) {
    .hero-bionluk {
        padding: 60px 0 !important;
    }

    .hero-bionluk h1 {
        font-size: 1.7rem !important;
    }

    .hero-bionluk .lead {
        font-size: 0.95rem !important;
    }

    .search-container {
        border-radius: 16px !important;
        padding: 10px !important;
    }
}

/* ---- GIG CARDS (index.php) ---- */
@media (max-width: 575.98px) {
    .gig-cover {
        height: 70px !important;
    }

    .gig-avatar {
        width: 65px !important;
        height: 65px !important;
        bottom: -32px !important;
    }
}

/* ---- DEVELOPER / TEAM LEADER PANELİ ---- */
@media (max-width: 767.98px) {

    /* Sidebar gizle */
    .panel-sidebar {
        display: none !important;
    }

    /* Panel tab butonlar küçül */
    .tab-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    /* Avatar küçül */
    .avatar-ring {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ---- TABLOLAR (tüm sayfalar) ---- */
@media (max-width: 767.98px) {
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- FOOTER ---- */
@media (max-width: 767.98px) {
    footer .d-flex.gap-2 {
        justify-content: center;
    }

    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        text-align: center;
    }
}

/* ---- CHAT POPUP (tüm sayfalar) ---- */
@media (max-width: 575.98px) {
    #chatPopupContainer {
        width: calc(100vw - 20px) !important;
        right: 10px !important;
        bottom: 70px !important;
    }

    #chatWindow {
        width: 100% !important;
    }

    #chatPopupBtn {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.2rem !important;
        bottom: 12px !important;
        right: 12px !important;
    }
}