/* ============================================
   SOHBETROOM - GELİŞMİŞ MOBİL UYUMLULUK
   Tam responsive: 320px - 1920px
   Windows Hosting Production Ready
   ============================================ */

/* ---- GENEL MOBİL DÜZELTMELER ---- */

/* iOS input zoom engelleme */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-size: 16px !important;
}

/* Touch hedef minimum boyutları */
button,
.btn,
a.btn,
.post-action-btn,
.like-btn,
.mobile-nav-item,
.conversation-item {
    min-height: 44px;
    min-width: 44px;
}

/* Tap highlight kaldır */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scroll her yerde */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Safe area padding */
.page-content {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ---- TABLET (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .layout-sidebar-left {
        grid-template-columns: 1fr;
    }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        max-width: 350px;
        order: -1;
    }

    /* Feed sidebar gizle */
    .feed-sidebar {
        display: none;
    }
}

/* ---- MOBİL BÜYÜK (max-width: 768px) ---- */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    /* Android Chrome yatay taşma engelleme */
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* Background orb'ları mobilde gizle — Android'de yatay taşmaya neden oluyor */
    body::before,
    body::after {
        display: none;
    }

    .page-content {
        overflow-x: hidden;
        max-width: 100%;
    }

    .container, .container-sm, .container-lg {
        padding: 0 12px;
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }

    /* Navbar mobil düzeltmeleri */
    .navbar-inner {
        padding: 0 12px;
        gap: 8px;
    }

    /* Brand text kısalt */
    .navbar-brand .brand-text {
        font-size: 1.15rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Navbar menü - gizle (sidebar ile değiştiriliyor) */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 5, 32, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 80px 20px 100px;
        overflow-y: auto;
    }

    .navbar-menu.open,
    .navbar-menu.mobile-open {
        transform: translateX(0);
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        font-size: 1.05rem;
        padding: 16px 20px;
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--radius-md);
    }

    .navbar-menu a .icon {
        margin-right: 12px;
    }

    .hamburger {
        display: flex !important;
    }

    /* Navbar sağ taraf düzeltmesi */
    .navbar-right {
        gap: 6px;
        flex-shrink: 0;
    }

    /* Profil dropdown mobilde gizle (sidebar'da var) */
    .nav-dropdown {
        display: none !important;
    }

    /* Misafir giriş/kayıt butonlarını mobilde gizle (sidebar'da var) */
    .navbar-right > a.btn {
        display: none !important;
    }

    /* Tema butonu mobilde göster - kompakt */
    .nav-theme-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Arama butonu kompakt */
    .nav-search-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    /* Arama kutusu mobil genişlik */
    .nav-search-box {
        position: fixed;
        left: 12px;
        right: 12px;
        top: calc(var(--navbar-height) + 8px);
        width: auto;
    }

    /* Mobil bottom nav göster */
    .mobile-nav {
        display: block !important;
    }

    .page-content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* Footer mobilde */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Grid */
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    /* Card */
    .card {
        padding: 18px;
        border-radius: var(--radius-lg);
    }

    /* Page title */
    .page-title {
        font-size: 1.6rem;
    }

    /* Tabs scroll */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Modal - bottom sheet */
    .modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    /* Hero section mobile */
    .hero-section {
        min-height: auto !important;
        padding: 30px 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stat {
        min-width: 80px;
    }

    /* Hero images mobil */
    .hero-images-stack {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-float-card {
        display: none;
    }

    /* Feature cards */
    .feature-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .feature-card {
        padding: 20px 16px !important;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    /* Feed layout */
    .feed-layout {
        grid-template-columns: 1fr !important;
    }

    .feed-sidebar {
        display: none !important;
    }

    /* Stories bar scroll */
    .stories-bar {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .stories-scroll {
        padding-right: 16px;
    }

    /* Rooms grid */
    .rooms-grid,
    .rooms-grid-page {
        grid-template-columns: 1fr !important;
    }

    .popular-widget {
        margin-top: 24px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Profile */
    .profile-header {
        margin-bottom: 20px;
    }

    .profile-info-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-avatar-wrapper {
        margin-bottom: 16px;
    }

    .profile-actions {
        margin-top: 16px;
        justify-content: center;
        width: 100%;
    }

    .profile-actions .btn {
        flex: 1;
    }

    .profile-posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3px !important;
    }

    .profile-stats-bar {
        justify-content: space-around;
    }

    /* Post card */
    .post-card {
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .post-header {
        padding: 12px 12px 0;
    }

    .post-content {
        padding: 10px 12px;
    }

    .post-stats {
        padding: 6px 12px;
    }

    .post-actions {
        margin: 0 8px;
        padding: 6px 0;
        gap: 0;
        flex-wrap: nowrap;
    }

    .post-action-btn {
        padding: 6px 2px;
        font-size: 0.78rem;
        gap: 3px;
        min-width: 0;
    }

    .reaction-btn {
        padding: 6px 8px;
        font-size: 0.82rem;
        gap: 4px;
    }

    .reaction-count {
        font-size: 0.78rem;
    }

    .bookmark-btn {
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
    }

    .post-comments {
        padding: 0 12px 12px;
    }

    .comment-form {
        padding: 8px 12px;
        gap: 8px;
    }

    .comment-form input {
        padding: 8px 12px;
        font-size: 0.84rem;
        min-width: 0;
    }

    .comment-form button {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Composer */
    .post-composer {
        border-radius: var(--radius-lg);
        overflow: hidden;
        padding: 14px;
        max-width: 100%;
    }

    .composer-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .composer-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        overflow: hidden;
    }

    .composer-tools {
        display: flex;
        flex-shrink: 1;
        min-width: 0;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .composer-tools::-webkit-scrollbar {
        display: none;
    }

    .composer-tool {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    #feedPostBtn,
    .composer-actions .btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 8px 14px;
        margin-left: auto;
        min-height: 38px;
        min-width: auto;
        display: flex !important;
        align-items: center;
        gap: 4px;
    }

    /* Story viewer mobile - tam ekran */
    .story-viewer {
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .story-viewer-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        border-radius: 0 !important;
    }

    .story-viewer-header {
        padding: 12px 12px 12px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }

    .story-viewer-close {
        top: 12px;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(0,0,0,0.6);
        z-index: 15;
    }

    .story-viewer-body {
        padding: 70px 16px 80px !important;
    }

    .story-viewer-body.has-image {
        padding: 0 !important;
    }

    .story-owner-actions {
        top: calc(56px + env(safe-area-inset-top, 0px));
        right: 12px;
    }

    .story-action-btn {
        width: 38px;
        height: 38px;
    }

    .story-footer-bar {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .story-viewers-bar {
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .story-people-panel {
        max-height: 50vh;
    }

    .story-viewer-nav {
        top: 70px;
        bottom: 80px;
    }

    /* Messages - Full screen on mobile */
    .messages-layout {
        flex-direction: column;
        height: calc(100vh - var(--navbar-height));
        height: calc(100dvh - var(--navbar-height));
    }

    .messages-sidebar {
        width: 100%;
        height: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

    .messages-sidebar.hidden-mobile {
        display: none;
    }

    .chat-panel {
        display: none;
        width: 100%;
        position: fixed;
        top: var(--navbar-height, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: var(--bg-dark);
    }

    .chat-panel.active-mobile {
        display: flex;
        flex-direction: column;
    }

    .back-btn {
        display: flex !important;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .chat-input-area {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        position: sticky;
        bottom: 0;
        z-index: 10;
        background: rgba(15, 5, 32, 0.95);
        backdrop-filter: blur(10px);
    }

    .chat-input {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        touch-action: manipulation;
    }

    .chat-input-form {
        gap: 8px;
    }

    .chat-send-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Explore */
    .explore-hero {
        padding: 30px 20px;
    }

    .explore-hero-title {
        font-size: 1.6rem;
    }

    .explore-categories {
        padding: 0 16px;
        margin: 0 -16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .category-chip {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Notifications */
    .notification-item {
        padding: 14px;
    }

    /* Auth pages */
    .auth-container {
        padding: 20px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    /* Steps */
    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: 100%;
    }

    /* Social proof strip */
    .proof-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .proof-item {
        width: 100%;
        justify-content: center;
    }

    /* Btn sizes */
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .btn-xl {
        padding: 14px 28px !important;
        font-size: 1rem !important;
    }
}

/* ---- MOBİL KÜÇÜK (max-width: 480px) ---- */
@media (max-width: 480px) {
    .container, .container-sm {
        padding: 0 12px;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .card {
        padding: 14px;
        border-radius: var(--radius-md);
    }

    .grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 12px 22px;
        font-size: 0.92rem;
    }

    .avatar-xxl { width: 90px; height: 90px; }
    .avatar-xl { width: 80px; height: 80px; }
    .avatar-lg { width: 56px; height: 56px; }

    /* Hero */
    .hero-title {
        font-size: 1.7rem !important;
    }

    .hero-subtitle {
        font-size: 0.92rem !important;
    }

    .hero-stat .stat-number {
        font-size: 1.3rem;
    }

    /* Feature cards */
    .feature-cards {
        grid-template-columns: 1fr !important;
    }

    .feature-card {
        padding: 20px !important;
    }

    /* Profile posts */
    .profile-posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2px !important;
    }

    .profile-post-item {
        aspect-ratio: 1;
    }

    /* Pagination */
    .pagination {
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.82rem;
        padding: 0 8px;
    }

    /* Composer - küçük ekranlar */
    .composer-actions {
        flex-wrap: nowrap;
        gap: 3px;
        padding: 6px 0;
        overflow: hidden;
    }

    .composer-tools {
        flex: 1 1 auto;
        min-width: 0;
        gap: 1px;
        overflow-x: auto;
    }

    .composer-tool {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.85rem;
    }

    #feedPostBtn,
    .composer-actions .btn {
        font-size: 0.75rem;
        padding: 7px 10px;
        min-height: 34px;
        min-width: auto;
        display: flex !important;
        align-items: center;
        gap: 3px;
    }

    /* Post */
    .post-header {
        padding: 12px 14px 0;
    }

    .post-content {
        padding: 8px 14px;
    }

    .post-text {
        font-size: 0.95rem;
    }

    .post-actions {
        margin: 0 10px;
    }

    .comment-form {
        padding: 10px;
    }

    /* Rooms */
    .room-card-v2 {
        padding: 16px;
    }

    /* Messages */
    .conversation-item {
        padding: 12px;
    }

    .message-bubble {
        max-width: 85%;
        padding: 10px 14px;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .advantage-item {
        padding: 16px 12px;
    }

    .advantage-item h4 {
        font-size: 0.85rem;
    }

    .advantage-item p {
        font-size: 0.75rem;
    }
}

/* ---- MİNİMUM EKRAN (max-width: 360px) ---- */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .profile-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .post-action-btn span:not(.action-icon) {
        display: none;
    }

    .post-action-btn {
        padding: 8px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .mobile-nav-item span {
        font-size: 0.65rem;
    }

    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .advantages-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---- BÜYÜK EKRANLAR (min-width: 1400px) ---- */
@media (min-width: 1400px) {
    .container-lg {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 3.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .feature-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- LANDSCAPE MOBİL ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        height: 50px;
    }

    .page-content {
        padding-top: 62px;
    }

    .mobile-nav {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }

    .modal {
        max-height: 95vh;
    }

    .messages-layout {
        height: calc(100vh - 50px);
    }
}

/* ---- DOKUNMATIK CİHAZ ---- */
@media (hover: none) and (pointer: coarse) {
    /* Hover efektlerini kaldır */
    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn:hover::before {
        opacity: 0;
    }

    .btn-primary:hover {
        transform: none;
    }

    .explore-item:hover {
        transform: none;
    }

    .explore-item:hover img {
        transform: none;
    }

    .feature-card:hover {
        transform: none !important;
    }

    .room-card-v2:hover {
        transform: none;
    }

    .post-card:hover {
        transform: none;
    }

    /* Active state ekle */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .card:active {
        opacity: 0.95;
    }

    .post-action-btn:active {
        background: var(--bg-glass);
    }
}

/* ---- ACCESSIBILITY ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    body::before, body::after {
        display: none;
    }

    .hero-carousel-img {
        transition: none;
    }
}

/* ---- DARK MODE OVERRIDE ---- */
@media (prefers-color-scheme: light) {
    /* Site zaten dark, light mode için değişiklik yok */
}

/* ---- PRINT ---- */
@media print {
    .navbar,
    .mobile-nav,
    .footer,
    .btn,
    .sidebar-widget,
    .post-actions,
    .comment-form,
    .stories-bar {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ddd;
        background: white !important;
        box-shadow: none;
    }

    .page-content {
        padding-top: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ---- NOTCH / DYNAMIC ISLAND ---- */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--navbar-height) + env(safe-area-inset-top));
    }

    .mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .chat-input-area {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .auth-page {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ---- UTILITY HELPER ---- */

/* dot-pulse animation */
.dot-pulse,
.dot-pulse-sm {
    display: inline-block;
    border-radius: 50%;
    background: #4ADE80;
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-pulse {
    width: 8px;
    height: 8px;
}

.dot-pulse-sm {
    width: 6px;
    height: 6px;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Icon sizes */
.sr-icon-hero { font-size: 3rem; }
.sr-icon-3xl { font-size: 2.5rem; }
.sr-icon-xl { font-size: 1.5rem; }
.sr-icon-lg { font-size: 1.25rem; }
.sr-icon-md { font-size: 1rem; }
.sr-icon-sm { font-size: 0.9rem; }
.sr-icon-xs { font-size: 0.75rem; }

/* Hide on mobile/desktop helpers */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
    .back-btn { display: none !important; }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 5, 32, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


/* ============================================
   MOBİL SIDEBAR MENU
   ============================================ */

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-glass);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(139, 92, 246, 0.05);
}

.mobile-sidebar-header .logo-icon-svg {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mobile-sidebar-header .brand-text {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.mobile-sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(217, 70, 239, 0.05));
    border-bottom: 1px solid var(--border-glass);
}

.mobile-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.mobile-profile-info {
    flex: 1;
}

.mobile-profile-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 2px;
}

.mobile-profile-username {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mobile-sidebar-search {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.mobile-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-search-input-wrap:focus-within {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.mobile-search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 0.95rem;
}

.mobile-search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.mobile-sidebar-nav {
    padding: 8px;
}

.mobile-sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    position: relative;
}

.mobile-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
}

.mobile-sidebar-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.1));
    color: var(--text-white);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.mobile-sidebar-item.danger {
    color: #F87171;
}

.mobile-sidebar-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.mobile-sidebar-item.primary {
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
}

.mobile-sidebar-item svg {
    width: 22px;
    height: 22px;
}

.mobile-sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.mobile-sidebar-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 12px 16px;
}

.mobile-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-theme-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
}

/* Hamburger animasyonu */
.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);
}

/* Light theme */
[data-theme="light"] .mobile-sidebar {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .mobile-sidebar-header {
    background: rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .mobile-sidebar-profile {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(217, 70, 239, 0.08));
}

[data-theme="light"] .mobile-sidebar-item {
    color: rgba(26, 10, 46, 0.7);
}

[data-theme="light"] .mobile-sidebar-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #1a0a2e;
}

[data-theme="light"] .mobile-sidebar-item.active {
    color: #1a0a2e;
}

/* Mobilde göster */
@media (min-width: 769px) {
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none;
    }
}
