/* ===========================================
   DAG GROUP - FULL RESPONSIVE CSS
   Tüm Cihazlar İçin Tam Uyumluluk
   =========================================== */

/* ========== GENEL RESET ========== */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== HAMBURGER MENÜ ========== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #C1121F;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== TABLET (768px - 991px) ========== */
@media (max-width: 991px) {

    /* Header */
    .site-header-container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a1a1a;
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        margin: 5px 0;
        width: 100%;
    }

    .nav-menu>li>a {
        padding: 12px 15px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex !important;
    }

    .header-right {
        display: none !important;
    }

    /* Dropdown menüler mobilde */
    .site-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 5px;
        padding: 10px;
        width: 100%;
    }

    .site-dropdown.active .site-dropdown-menu {
        display: block !important;
    }

    .site-dropdown-menu li a {
        padding: 10px 15px;
        display: block;
    }

    /* Hero */
    .display-4 {
        font-size: 2.2rem !important;
    }

    .display-5 {
        font-size: 1.8rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Grid ayarları */
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Stats */
    .stats-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }

    /* Footer */
    footer .col-lg-4,
    footer .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 25px;
    }
}

/* ========== MOBİL BÜYÜK (576px - 767px) ========== */
@media (max-width: 767px) {

    /* Genel */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    section,
    .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Typography */
    h1,
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .display-6 {
        font-size: 1.35rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    /* Hero */
    [style*="margin-top: 80px"] {
        margin-top: 70px !important;
    }

    [style*="padding: 80px 0"] {
        padding: 50px 0 !important;
    }

    [style*="padding: 60px 0"] {
        padding: 40px 0 !important;
    }

    /* Cards - Tek Sütun */
    .col-lg-4,
    .col-lg-3,
    .col-md-6,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* Buttons */
    .btn-lg {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
    }

    /* Tables */
    .table-responsive {
        font-size: 0.8rem;
    }

    .table td,
    .table th {
        padding: 8px 5px;
        white-space: nowrap;
    }

    /* Forms */
    .form-control-lg {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        text-align: center;
    }

    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }

    footer .d-flex {
        justify-content: center !important;
    }

    /* Blog Sidebar order */
    .col-lg-8 {
        order: 1;
    }

    .col-lg-4:last-child {
        order: 2;
    }

    /* Modal */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-lg,
    .modal-xl {
        max-width: 100%;
    }

    /* Akademi Cards */
    .training-card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .training-icon {
        margin: 0 auto 15px !important;
    }

    /* Contact */
    .contact-modern-wrapper {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .contact-info-card,
    .contact-form-card {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Blog & Announcement Images */
    .blog-card .card-img-top,
    .announcement-card .card-img-top {
        height: 200px !important;
    }

    /* Team */
    .team-card img,
    .professional-card img {
        height: 250px !important;
    }

    /* Form rows */
    .form-row,
    [style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column !important;
    }

    [style*="display: flex"][style*="gap: 20px"]>div {
        width: 100% !important;
        flex: none !important;
    }

    /* btn-group */
    .btn-group {
        flex-wrap: wrap;
    }

    .btn-group .btn {
        margin-bottom: 5px;
    }
}

/* ========== MOBİL KÜÇÜK (< 576px) ========== */
@media (max-width: 575px) {

    /* Typography daha küçük */
    h1,
    .display-4 {
        font-size: 1.5rem !important;
    }

    .display-5 {
        font-size: 1.3rem !important;
    }

    .display-6 {
        font-size: 1.2rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
    }

    /* Hero daha kompakt */
    [style*="margin-top: 80px"],
    [style*="margin-top: 70px"] {
        margin-top: 65px !important;
    }

    /* Header logo */
    .logo img {
        max-height: 35px;
    }

    /* Butonlar */
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
        width: 100%;
    }

    /* Cards */
    .card-body {
        padding: 15px;
    }

    /* Stats */
    .stats-section .col-6,
    .stats-section .col-md-3,
    .bg-dark .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 10px 5px;
    }

    .stats-section h2,
    .stats-section h3,
    .bg-dark h3 {
        font-size: 1.3rem !important;
    }

    /* Form rows */
    .row.g-3>div[class*="col-md-6"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Footer Social */
    footer .social-links a,
    [style*="width: 40px"][style*="height: 40px"] {
        width: 35px !important;
        height: 35px !important;
    }

    /* Announcement cards */
    .announcement-card .card-img-top {
        height: 220px !important;
    }

    /* D-flex gap azaltma */
    .d-flex.gap-3 {
        gap: 8px !important;
    }

    .d-flex.gap-4 {
        gap: 12px !important;
    }

    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.75rem;
    }

    /* Admin panel mobile */
    #sidebar-wrapper {
        position: fixed;
        left: -260px;
        z-index: 1050;
        transition: left 0.3s ease;
        height: 100vh;
    }

    #sidebar-wrapper.active {
        left: 0;
    }

    #page-content-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .top-navbar {
        padding: 10px 15px !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-navbar h5 {
        font-size: 0.85rem;
        width: 100%;
    }

    /* Admin cards */
    .admin-card {
        padding: 12px;
    }

    /* Franchise process */
    [style*="width: 80px"][style*="height: 80px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    /* Info boxes */
    .info-item,
    [style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column;
        text-align: center;
    }

    .icon-box,
    [style*="width: 50px"][style*="height: 50px"] {
        margin: 0 auto 10px !important;
    }

    /* Portfolio detail */
    .portfolio-images {
        flex-direction: column;
    }

    /* Professionals */
    .professional-card .card-body {
        padding: 12px;
    }

    .professional-card .btn-group-vertical {
        width: 100%;
    }

    .professional-card .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* ========== ÇOK KÜÇÜK CİHAZLAR (< 400px) ========== */
@media (max-width: 400px) {

    h1,
    .display-4 {
        font-size: 1.3rem !important;
    }

    .display-5,
    .display-6 {
        font-size: 1.15rem !important;
    }

    .btn:not(.btn-sm) {
        width: 100%;
        margin-bottom: 8px;
    }

    .d-flex.gap-2 {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Stats full width */
    .stats-section .col-6,
    .bg-dark .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* Modals */
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

    /* Filter buttons stack */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        border-radius: 6px !important;
        margin: 3px 0;
    }
}

/* ========== TOUCH-FRIENDLY ========== */
@media (hover: none) and (pointer: coarse) {

    /* Touch cihazlar için daha büyük tıklama alanları */
    .nav-menu a,
    .site-dropdown-menu a {
        padding: 14px 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    /* Hover efektlerini kaldır */
    .card:hover,
    .blog-card:hover,
    .announcement-card:hover,
    .training-card:hover,
    .service-card:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    }
}

/* ========== LANDSCAPE MOBİL ========== */
@media (max-height: 500px) and (orientation: landscape) {

    .hero-section,
    [style*="padding: 80px 0"] {
        padding: 40px 0 !important;
        min-height: auto;
    }

    .display-4,
    .display-5 {
        font-size: 1.5rem !important;
    }

    .nav-menu {
        max-height: 60vh;
    }
}

/* ========== PRINT ========== */
@media print {

    .hamburger,
    .header-right,
    .btn,
    footer,
    .nav-menu,
    header {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    body {
        font-size: 12pt;
    }
}