/* ============================================
   CREATOR MODULE - MOBILE SPECIFIC STYLES
   Estilos dedicados para la sección Creator en móvil
   ============================================ */

@media (max-width: 768px) {
    /* Creator Container */
    .flex.flex-col.h-full.animate-slideInRight {
        display: flex;
        flex-direction: column;
    }

    /* Creator Header - Rediseño completo */
    .creator-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.5rem !important;
        height: auto !important;
        min-height: auto !important;
        gap: 0.5rem !important;
        background: #09090b !important;
    }

    /* Header top section */
    .creator-header > div:first-child {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .creator-header > div:first-child button {
        padding: 0.5rem !important;
        min-height: auto !important;
    }

    /* Header text */
    .creator-header-text {
        flex: 1;
    }

    .creator-header-text h2 {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .creator-header-text p {
        display: none !important;
    }

    /* Header actions */
    .creator-header-actions {
        display: flex !important;
        width: 100% !important;
        gap: 0.5rem !important;
        margin-top: 0 !important;
    }

    .creator-cancel-btn {
        display: none !important;
    }

    .creator-generate-btn {
        flex: 1 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        min-height: 44px !important;
    }

    .creator-generate-btn i {
        width: 1rem !important;
        height: 1rem !important;
    }

    /* Creator Grid - Force single column */
    .flex-1.overflow-hidden.grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    /* Left and Right sections */
    .flex-1.overflow-hidden.grid > div {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #27272a !important;
        max-height: none !important;
    }

    .flex-1.overflow-hidden.grid > div:last-child {
        border-bottom: none !important;
    }

    /* Section padding */
    .flex-1.overflow-hidden.grid > div {
        padding: 1.5rem 1rem !important;
    }

    /* Max width containers */
    .max-w-xl {
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Space between sections */
    .space-y-8 > * + * {
        margin-top: 1.5rem !important;
    }

    /* Section headers */
    .text-sm.font-semibold.text-white {
        font-size: 0.75rem !important;
        letter-spacing: 0.05em !important;
    }

    .text-xs.text-zinc-500 {
        font-size: 0.625rem !important;
    }

    /* Dropzone */
    .h-24.rounded-xl.border-2 {
        height: 4rem !important;
        min-height: 4rem !important;
    }

    .h-24.rounded-xl.border-2 span {
        font-size: 0.75rem !important;
    }

    .h-24.rounded-xl.border-2 i {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    /* Textarea */
    #prompt-input {
        min-height: 100px !important;
        height: 100px !important;
        font-size: 0.875rem !important;
        padding: 0.75rem !important;
    }

    /* Tag buttons */
    .mt-3.flex.flex-wrap.gap-2 {
        gap: 0.375rem !important;
        margin-top: 0.75rem !important;
    }

    .mt-3.flex.flex-wrap.gap-2 button {
        font-size: 0.625rem !important;
        padding: 0.375rem 0.625rem !important;
        white-space: nowrap;
    }

    .mt-3.flex.flex-wrap.gap-2 button i {
        width: 0.75rem !important;
        height: 0.75rem !important;
    }

    /* Project Title Section */
    .flex.flex-col.gap-4 {
        gap: 0.75rem !important;
    }

    .flex.flex-col.gap-4 label {
        font-size: 0.625rem !important;
        margin-bottom: 0.25rem !important;
    }

    #deck-title-input {
        font-size: 1.125rem !important;
        padding: 0.5rem 0 !important;
    }

    /* Visual Style Section */
    .text-xs.font-semibold.text-zinc-500.uppercase {
        font-size: 0.625rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Style Selector Grid */
    #style-selector {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    #style-selector .style-option {
        padding: 0.875rem !important;
        border-radius: 0.75rem !important;
    }

    #style-selector .style-option .font-medium {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }

    #style-selector .style-option .text-xs {
        font-size: 0.6875rem !important;
    }

    #style-selector .style-option .check-icon {
        top: 0.5rem !important;
        right: 0.5rem !important;
    }

    #style-selector .style-option .check-icon i {
        width: 1rem !important;
        height: 1rem !important;
    }

    /* Asset List */
    #asset-list {
        max-height: 150px !important;
        overflow-y: auto !important;
    }

    /* Loading Overlay */
    #local-loading-overlay .w-96 {
        width: calc(100vw - 2rem) !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
    }

    #local-loading-overlay .w-24.h-24 {
        width: 4rem !important;
        height: 4rem !important;
    }

    #local-loading-overlay h2 {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }

    #local-loading-overlay p {
        font-size: 0.625rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - even more compact */
    .creator-header {
        padding: 0.375rem !important;
    }

    .creator-header-text h2 {
        font-size: 0.8125rem !important;
    }

    .creator-generate-btn {
        font-size: 0.8125rem !important;
        padding: 0.625rem 0.875rem !important;
    }

    .flex-1.overflow-hidden.grid > div {
        padding: 1rem 0.75rem !important;
    }

    #prompt-input {
        min-height: 80px !important;
        height: 80px !important;
        font-size: 0.8125rem !important;
    }

    .mt-3.flex.flex-wrap.gap-2 button {
        font-size: 0.5625rem !important;
        padding: 0.3125rem 0.5rem !important;
    }

    #deck-title-input {
        font-size: 1rem !important;
    }

    #style-selector {
        gap: 0.5rem !important;
    }

    #style-selector .style-option {
        padding: 0.75rem !important;
    }

    #style-selector .style-option .font-medium {
        font-size: 0.8125rem !important;
    }

    #style-selector .style-option .text-xs {
        font-size: 0.625rem !important;
    }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .creator-header {
        padding: 0.375rem 0.5rem !important;
    }

    .flex-1.overflow-hidden.grid > div {
        padding: 1rem !important;
    }

    #prompt-input {
        min-height: 80px !important;
        height: 80px !important;
    }

    .space-y-8 > * + * {
        margin-top: 1rem !important;
    }
}
