/* Tablet ve desktop için */
@media (min-width: 768px) {
    .list-header { display: flex; }
    
    /* Header menüsünü göster */
    .header-menus { display: flex !important; }
    .mobile-menu-toggle { display: none; }
}

@media (max-width: 767px) {
    /* Genel mobil konteyner ayarları */
    .container {
        margin: 15px auto;
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Header mobil uyum */
    .site-header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .site-branding {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .site-title a {
        font-size: 20px;
    }
    
    .header-menus {
        display: none;
    }
    
    .header-right {
        order: 2;
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
        justify-content: center;
    }
    
    /* ULTRA MODERN MOBİL HAMBURGER MENÜ */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)) !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
        border-radius: 12px !important;
        color: var(--header-text) !important;
        cursor: pointer !important;
        font-size: 20px !important;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .mobile-menu-toggle::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15)) !important;
        border-color: rgba(255,255,255,0.4) !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    }
    
    .mobile-menu-toggle:hover::before {
        left: 100% !important;
    }
    
    /* ULTRA MODERN MOBİL MENÜ OVERLAY */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(30, 58, 138, 0.3));
        backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 998;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* ULTRA MODERN MOBİL MENÜ - 900PX AŞAĞI UZUNLUK */
    .mobile-menu {
        position: fixed !important;
        top: 120px !important; /* Hamburger butonunun daha altından başlar */
        left: -320px !important;
        width: 300px !important;
        height: calc(100vh - 120px) !important; /* Ekranın geri kalanını kapla */
        max-height: none !important; /* Yükseklik kısıtlamasını kaldır */
        min-height: 750px !important; /* Minimum yükseklik 750px */
        background: linear-gradient(180deg, 
            rgba(30, 58, 138, 0.95) 0%, 
            rgba(59, 130, 246, 0.9) 50%, 
            rgba(6, 182, 212, 0.95) 100%);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255,255,255,0.2);
        border-radius: 0 15px 15px 0;
        box-shadow: 5px 0 30px rgba(0,0,0,0.3);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
        overflow-y: auto;
        padding: 20px 0 40px 0;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
        backdrop-filter: blur(5px);
    }
    
    /* MENÜ LİSTESİ */
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-menu li {
        margin: 0;
        position: relative;
    }
    
    .mobile-menu a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 18px 30px;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .mobile-menu a:hover {
        color: #ffffff;
        background: rgba(255,255,255,0.15);
        border-left-color: #ffffff;
        transform: translateX(8px);
        padding-left: 38px;
        box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
    }
    
    .mobile-menu a:hover::before {
        left: 100%;
    }
    
    .mobile-menu i {
        font-size: 18px;
        width: 20px;
        text-align: center;
        filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
    }
    
    /* MENÜ KAPAMA BUTONU */
    .mobile-menu::after {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 25px;
        right: 25px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.8);
        font-size: 20px;
        cursor: pointer;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
    
    .mobile-menu:hover::after {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.4);
        color: #ffffff;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    }
    
    .list-row { flex-direction: column; align-items: flex-start; }
    .cell-main { margin-bottom: 15px; }
    .cell-stats, .cell-last-post {
        flex-basis: auto;
        width: 100%;
        text-align: left;
        padding-top: 15px;
        border-top: 1px dashed var(--border-color);
    }
    .original-post, .comment-body { flex-direction: column; }
    .author-box, .comment-author-box {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
    }
    .author-box .avatar, .comment-author-box .avatar { margin-right: 15px; margin-bottom: 0; }

    /* Sade Modern Postbit Mobil Uyumluluk */
    .author-box.modern-postbit {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        gap: 10px;
        text-align: left;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .author-avatar {
        flex-shrink: 0;
    }
    
    .author-avatar .avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-info {
        flex: 1;
        text-align: left;
        gap: 6px;
    }
    
    .author-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11px;
    }
    
    .author-meta span,
    .author-meta a {
        justify-content: flex-start;
        gap: 4px;
    }
    
    .author-actions {
        gap: 4px;
        margin-top: 6px;
    }
    
    .action-link {
        padding: 4px 6px;
        font-size: 10px;
        gap: 3px;
    }
    
    /* Ziyaretçi Postbit Mobil */
    .visitor-postbit {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        gap: 10px;
        text-align: left;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .visitor-postbit::before {
        height: 2px;
    }
    
    .visitor-info {
        flex: 1;
        text-align: left;
        gap: 6px;
    }
    
    .visitor-badge {
        align-self: flex-start;
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .visitor-website {
        margin-top: 3px;
    }
    
    .visitor-website a {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* Eski author-box mobil uyumluluğu */
    .author-box:not(.modern-postbit) {
        position: relative;
    }
    .author-name {
        margin-bottom: 5px;
    }
    .user-rank {
       margin: 0;
       position: absolute;
       top: 15px;
       right: 15px;
    }

    .post-card { flex-direction: column; }
    .author-box {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
    }
    .author-box .avatar { margin-right: 15px; margin-bottom: 0; width: 60px; height: 60px;}
    .author-meta { margin-top: 0; margin-left: auto; text-align: right; }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        width: 100%;
        justify-content: space-around;
    }

    .stats-row {
        flex-direction: column;
    }
    
    .stat-card {
        max-width: none;
        width: 100%;
    }
    
    .site-info-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .site-brand {
        text-align: center;
    }
    
    .bottom-row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .activity-header, .activity-cell-lastpost {
        display: none;
    }

    .activity-header, .activity-cell-stats, .activity-cell-forum {
        display: none;
    }
    .activity-row { padding: 12px 15px; }
    .activity-cell-topic .topic-title { font-size: 16px; }
    
    /* Form elemanları mobil optimize */
    .comment-form {
        margin-top: 20px;
    }
    
    .comment-form .form-group {
        margin-bottom: 15px;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        font-size: 16px; /* iOS zoom'ı engellemek için */
        min-height: 44px; /* Dokunma hedefi */
    }
    
    .comment-form textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Yorum sistemi mobil düzenlemeler */
    .comment-item {
        margin-bottom: 15px;
    }
    
    .comment-content {
        padding: 15px;
    }
    
    .comment-meta {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Tek konu sayfası mobil düzenlemeler */
    .topic-header {
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .topic-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .moderation-tools {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .card-content-wrapper {
        padding: 15px;
        font-size: 15px;
        line-height: 1.6;
    }
    
    .card-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .card-body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .card-body img {
        margin: 10px 0;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    /* Küçük ekranlar için konteyner ayarları */
    .container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .site-header {
        padding: 8px 10px;
    }
    
    .site-title a {
        font-size: 18px;
    }
    
    /* Mobil menü boyut ayarı - 480px altı */
    .mobile-menu {
        width: 250px !important;
        left: -260px !important;
        height: 750px !important; /* Aşağıya doğru optimum uzunluk */
        top: 120px !important; /* Hamburger butonunun daha altından */
    }
    
    .mobile-menu.active {
        left: 0 !important;
    }
    
    /* Typography iyileştirmeleri */
    .forum-title {
        font-size: 15px;
    }
    
    .forum-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* Liste elemanları daha kompakt */
    .list-row {
        padding: 12px 10px;
    }
    
    .forum-list-container {
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    /* İstatistikler ve son postlar */
    .cell-stats {
        padding-top: 10px;
        gap: 15px;
    }
    
    .stats-count {
        font-size: 16px;
    }
    
    .last-post-details span {
        font-size: 12px;
    }
    
    .last-post-info .avatar {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
    
    /* Footer iyileştirmeleri */
    .footer-statistics,
    .footer-info {
        padding: 15px 0;
    }
    
    .stat-card {
        min-width: auto;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 14px;
        padding: 8px 0;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        flex-direction: row;
        text-align: left;
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Dropdown menüler mobil için daha geniş */
    .notifications-dropdown,
    .user-dropdown-menu {
        min-width: 280px;
        max-width: calc(100vw - 20px);
        right: 10px;
    }
    
    /* Butonlar mobil için daha dokunulabilir */
    .button-primary {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .button-secondary {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Breadcrumbs mobil optimize */
    .breadcrumbs {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Ekstra küçük ekranlar (320px ve altı) */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .site-header {
        padding: 8px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .header-search {
        max-width: 180px;
    }
    
    .search-field {
        font-size: 13px;
    }
    
    .list-row {
        padding: 10px 8px;
    }
    
    .forum-title {
        font-size: 14px;
    }
    
    .notifications-dropdown,
    .user-dropdown-menu {
        right: 5px;
        min-width: 250px;
    }
    
    /* En küçük ekranlar için menü boyutu */
    .mobile-menu {
        width: 200px !important; /* Çok küçük ekranlar için */
        left: -210px !important;
        height: 750px !important; /* Aşağıya doğru optimum uzunluk */
        top: 120px !important; /* Hamburger butonunun daha altından */
    }
    
    .mobile-menu a {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
}
