/* WindWalker Responsive Layout CSS Module */
/* Desktop - Full screen usage */
@media (min-width: 1024px) {
    .main-content {
        height: calc(100vh - 80px); /* Full screen minus header */
    }

    .chat-panel, .preview-panel {
        height: 100%;
        width: 50%;
    }
}

/* Tablet (768px ~ 1023px) - Stacked layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-content {
        height: calc(100vh - 80px);
        flex-direction: column !important;
    }

    .chat-panel {
        height: 40% !important;
        width: 100% !important;
    }

    .preview-panel {
        height: 60% !important;
        width: 100% !important;
    }
}

/* Mobile optimization - Touch-friendly buttons and inputs */
@media (max-width: 1023px) {
    .flex-1.flex {
        flex-direction: column !important;
    }

    .w-1\/2 {
        width: 100% !important;
    }

    .chat-input-container, .p-4.border-t.bg-white {
        padding: 12px;
    }

    input[type="text"] {
        min-height: 48px !important; /* iOS/Android touch target */
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px 16px !important;
    }

    button {
        min-height: 48px !important;
        min-width: 60px;
        padding: 12px 16px !important;
    }

    /* Header mobile optimization */
    .header-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .header-buttons button {
        font-size: 12px !important;
        padding: 6px 10px !important;
        min-height: 40px !important;
    }
}

/* Small mobile screens (iPhone SE, etc.) */
@media (max-width: 480px) {
    .main-content {
        height: calc(100vh - 60px); /* Compact header */
    }

    .chat-input-container, .p-4.border-t.bg-white {
        padding: 8px !important;
    }

    input[type="text"] {
        padding: 12px !important;
        font-size: 16px !important;
    }

    button {
        padding: 12px !important;
        font-size: 14px !important;
    }

    .chat-panel {
        height: 50% !important;
        min-height: 300px;
    }

    .preview-panel {
        height: 50% !important;
        min-height: 300px;
    }

    h1 {
        font-size: 1.25rem !important;
    }

    h2 {
        font-size: 1rem !important;
    }

    .text-2xl {
        font-size: 1.25rem !important;
    }

    .text-lg {
        font-size: 1rem !important;
    }
}