/* ===================================================
   DOSYA: public/css/responsive.css
   YOL: C:\xampp\htdocs\averon\public\css\responsive.css
   Mobil ve tablet uyumlu tasarım
   =================================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .user-panel {
        width: 200px;
    }

    .channels-panel {
        width: 200px;
    }

    .auth-container {
        padding: 30px;
    }

    .modal-content {
        max-width: 450px;
    }
}

/* Mobil Cihazlar (480px - 768px) */
@media (max-width: 768px) {
    .main-app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        padding: 8px 16px;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-header {
        margin-bottom: 0;
    }

    .user-profile {
        width: 44px;
        height: 44px;
        margin-bottom: 0;
    }

    .servers-list {
        flex-direction: row;
        flex: 1;
        gap: 4px;
    }

    .server-item {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .sidebar-footer {
        flex-direction: row;
        gap: 4px;
        margin-top: 0;
    }

    .channels-panel {
        display: none;
        position: fixed;
        left: 0;
        top: 60px;
        width: 200px;
        height: calc(100vh - 60px);
        z-index: 100;
        border-right: 1px solid var(--border);
        border-bottom: none;
    }

    .channels-panel.active {
        display: flex;
    }

    .user-panel {
        display: none;
        position: fixed;
        right: 0;
        top: 60px;
        width: 200px;
        height: calc(100vh - 60px);
        z-index: 100;
        border-left: 1px solid var(--border);
    }

    .user-panel.active {
        display: flex;
    }

    .chat-area {
        width: 100%;
        height: calc(100vh - 60px);
    }

    .chat-header {
        padding: 12px;
    }

    .chat-title h2 {
        font-size: 16px;
    }

    .chat-actions {
        gap: 8px;
    }

    .chat-actions .icon-btn {
        font-size: 16px;
        padding: 4px;
    }

    .messages-container {
        padding: 12px;
    }

    .message-input-area {
        padding: 12px;
    }

    .input-wrapper {
        padding: 8px;
        gap: 6px;
    }

    .message-input {
        font-size: 13px;
    }

    .btn-icon {
        font-size: 16px;
        padding: 4px 8px;
    }

    .modal-content {
        max-width: 90%;
        width: 100%;
    }

    .auth-container {
        padding: 20px;
    }

    .logo {
        font-size: 28px;
    }
}

/* Küçük Mobil (320px - 480px) */
@media (max-width: 480px) {
    .sidebar {
        height: 50px;
        padding: 4px 8px;
    }

    .user-profile {
        width: 40px;
        height: 40px;
    }

    .server-item {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .channels-panel {
        width: 100vw;
        top: 50px;
        height: calc(100vh - 50px);
    }

    .user-panel {
        width: 100vw;
        top: 50px;
        height: calc(100vh - 50px);
    }

    .chat-area {
        height: calc(100vh - 50px);
    }

    .chat-header {
        padding: 8px;
    }

    .chat-title h2 {
        font-size: 14px;
    }

    .chat-actions {
        gap: 4px;
    }

    .chat-actions .icon-btn {
        font-size: 14px;
        padding: 2px;
    }

    .messages-container {
        padding: 8px;
    }

    .message {
        gap: 8px;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
    }

    .message-author {
        font-size: 13px;
    }

    .message-text {
        font-size: 13px;
    }

    .message-input-area {
        padding: 8px;
    }

    .input-wrapper {
        padding: 6px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 13px;
        padding: 8px 10px;
    }

    .btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .logo {
        font-size: 24px;
    }

    .auth-form h2 {
        font-size: 18px;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        height: 50px;
    }

    .chat-area {
        height: calc(100vh - 50px);
    }

    .channels-panel {
        top: 50px;
        height: calc(100vh - 50px);
    }
}  /* ← BU KAPANIŞ OLMALI */