/**
 * MakerOrShip Custom Styles
 * No Tailwind dependency - Pure CSS for theme compatibility
 */

:root {
    --mos-primary: #3b82f6;
    --mos-primary-hover: #2563eb;
    --mos-slate-50: #f8fafc;
    --mos-slate-100: #f1f5f9;
    --mos-slate-200: #e2e8f0;
    --mos-slate-400: #94a3b8;
    --mos-slate-500: #64748b;
    --mos-slate-600: #475569;
    --mos-slate-700: #334155;
    --mos-slate-900: #0f172a;
    --mos-white: #ffffff;
    --mos-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mos-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mos-plugin-container {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--mos-slate-900);
    line-height: 1.5;
    box-sizing: border-box;
}

.mos-plugin-container * {
    box-sizing: border-box;
}

/* Layout Utilities */
.mos-max-w-2xl { max-width: 42rem; }
.mos-max-w-4xl { max-width: 56rem; }
.mos-max-w-7xl { max-width: 80rem; }
.mos-mx-auto { margin-left: auto; margin-right: auto; }
.mos-my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mos-py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mos-px-4 { padding-left: 1rem; padding-right: 1rem; }
.mos-p-6 { padding: 1.5rem; }
.mos-p-8 { padding: 2rem; }
.mos-p-10 { padding: 2.5rem; }

/* Components */
.mos-card {
    background: var(--mos-white);
    border-radius: 1.5rem;
    border: 1px solid var(--mos-slate-100);
    box-shadow: var(--mos-shadow);
    overflow: hidden;
}

.mos-card-lg {
    border-radius: 2rem;
    box-shadow: var(--mos-shadow-lg);
}

.mos-grid {
    display: grid;
    gap: 2rem;
}

.mos-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .mos-grid-cols-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .mos-grid-cols-lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Typography */
.mos-text-center { text-align: center; }
.mos-text-left { text-align: left; }
.mos-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.mos-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.mos-font-bold { font-weight: 700; }
.mos-font-extrabold { font-weight: 800; }
.mos-text-slate-500 { color: var(--mos-slate-500); }
.mos-text-slate-600 { color: var(--mos-slate-600); }
.mos-text-slate-900 { color: var(--mos-slate-900); }
.mos-mb-2 { margin-bottom: 0.5rem; }
.mos-mb-4 { margin-bottom: 1rem; }
.mos-mb-6 { margin-bottom: 1.5rem; }
.mos-mb-8 { margin-bottom: 2rem; }
.mos-mb-12 { margin-bottom: 3rem; }

/* Form Elements */
.mos-form-group {
    margin-bottom: 1.5rem;
}

.mos-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mos-slate-700);
    margin-bottom: 0.25rem;
}

.mos-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--mos-slate-200);
    outline: none;
    transition: all 0.2s;
}

.mos-input:focus {
    border-color: var(--mos-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.mos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 0.5rem;
}

.mos-btn-primary {
    background-color: var(--mos-primary);
    color: var(--mos-white);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.mos-btn-primary:hover {
    background-color: var(--mos-primary-hover);
    transform: translateY(-1px);
}

.mos-btn-primary:active {
    transform: scale(0.98);
}

.mos-btn-block {
    width: 100%;
}

/* Dropzone */
.mos-dropzone {
    position: relative;
    border: 2px dashed var(--mos-slate-200);
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-color: var(--mos-white);
}

.mos-dropzone:hover {
    border-color: var(--mos-primary);
    background-color: var(--mos-slate-50);
}

.mos-dropzone.mos-active {
    border-color: var(--mos-primary);
    background-color: #eff6ff;
}

/* 3D Viewer */
.mos-3d-viewer {
    background-color: var(--mos-slate-50);
    border-radius: 1rem;
    overflow: hidden;
    cursor: grab;
    width: 100%;
    height: 100%;
}

.mos-3d-viewer:active {
    cursor: grabbing;
}

/* Gallery */
.mos-gallery-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .mos-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mos-gallery-item {
    background: var(--mos-white);
    border-radius: 1.5rem;
    border: 1px solid var(--mos-slate-100);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.mos-gallery-item:hover {
    box-shadow: var(--mos-shadow-lg);
    transform: translateY(-4px);
}

.mos-gallery-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    aspect-ratio: 16/9;
}

@media (min-width: 768px) {
    .mos-gallery-media {
        aspect-ratio: 2/1;
    }
}

.mos-media-box {
    position: relative;
    background-color: var(--mos-slate-50);
    overflow: hidden;
}

.mos-media-box img, 
.mos-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mos-badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mos-white);
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.mos-badge-left { left: 0.75rem; }
.mos-badge-right { right: 0.75rem; background-color: rgba(59, 130, 246, 0.8); }

.mos-gallery-info {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Status Badges */
.mos-status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mos-status-pending { background-color: #fef9c3; color: #854d0e; }
.mos-status-processing { background-color: #dbeafe; color: #1e40af; }
.mos-status-completed { background-color: #dcfce7; color: #166534; }

/* Modals */
.mos-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.mos-modal-content {
    background: var(--mos-white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--mos-shadow-lg);
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.mos-form-compact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mos-form-group-compact {
    margin-bottom: 0.75rem;
}

.mos-hidden {
    display: none !important;
}

/* Admin Panel Specific */
.mos-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.mos-admin-table th, 
.mos-admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--mos-slate-100);
}

.mos-admin-preview {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* Animations */
@keyframes mos-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mos-animate-spin {
    animation: mos-spin 1s linear infinite;
}

