/* ============================================================
   TADBEER TRANSFORMATIONS — ULTRA-MINIMAL DESIGN SYSTEM
   Modern, Precision-Crafted, Lightweight & Responsive
   ============================================================ */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Neutral Minimal Canvas */
    --bg-canvas: #FAFAF9;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --bg-muted: #F8FAFC;
    
    /* Monochrome & Slate Typography */
    --text-main: #0B191E;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;
    
    /* Hairline Precision Borders */
    --border-hairline: #E2E8F0;
    --border-subtle: rgba(11, 25, 30, 0.08);
    --border-hover: rgba(11, 25, 30, 0.2);
    --border-focus: #0B191E;
    
    /* Curated Luxury Accents */
    --accent-teal: #184F5B;
    --accent-teal-dark: #0B2228;
    --accent-gold: #C5A85C;
    --accent-gold-soft: rgba(197, 168, 92, 0.12);
    
    /* Utility States */
    --status-approved-bg: #ECFDF5;
    --status-approved-text: #065F46;
    --status-approved-border: #A7F3D0;
    
    --status-changes-bg: #FFFBEB;
    --status-changes-text: #92400E;
    --status-changes-border: #FDE68A;
    
    --status-pending-bg: #F8FAFC;
    --status-pending-text: #64748B;
    --status-pending-border: #E2E8F0;
    
    /* Elevation & Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 28px -4px rgba(11, 25, 30, 0.06), 0 4px 12px -2px rgba(11, 25, 30, 0.03);
    --shadow-modal: 0 24px 48px -12px rgba(11, 25, 30, 0.18);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.minimal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Minimal Sticky Header */
.minimal-header {
    position: sticky;
    top: 16px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    gap: 16px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Minimal Buttons */
.btn-m {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    outline: none;
}

.btn-m-primary {
    background: var(--text-main);
    color: #FFFFFF;
}
.btn-m-primary:hover {
    background: #1E293B;
    transform: translateY(-1px);
}

.btn-m-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-hairline);
}
.btn-m-secondary:hover {
    background: var(--bg-muted);
    border-color: var(--border-hover);
}

.btn-m-ig {
    background: #FAF5FF;
    color: #9333EA;
    border-color: #E9D5FF;
}
.btn-m-ig:hover {
    background: #F3E8FF;
    border-color: #D8B4FE;
}

.btn-m-danger {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FEE2E2;
}
.btn-m-danger:hover {
    background: #FEE2E2;
}

/* Search and Filters Bar */
.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-pills {
    display: inline-flex;
    background: #F1F5F9;
    padding: 4px;
    border-radius: var(--radius-lg);
    gap: 2px;
    border: 1px solid var(--border-hairline);
    overflow-x: auto;
    max-width: 100%;
}

.pill-tab {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.pill-tab:hover {
    color: var(--text-main);
}

.pill-tab.active {
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}

.search-input-wrap input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    font-family: var(--font-sans);
    font-size: 13px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-fast);
}

.search-input-wrap input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--border-focus);
}

.search-icon-svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Minimal Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
    position: relative;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.card-media-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: #0B191E;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.card-item:hover .card-media-wrap img {
    transform: scale(1.02);
}

.card-badge-format {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 25, 30, 0.75);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.card-badge-cta {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0,0,0,0.06);
}

.card-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.card-theme {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.card-actions-row {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-btn-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
}

/* Minimal Modal Sheet */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-modal);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--bg-muted);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-control {
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-hairline);
    background: var(--bg-surface);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--border-focus);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

/* Slide Thumbnail Manager in Creator */
.slides-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
}

.slide-strip-item {
    width: 72px;
    height: 90px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #F1F5F9;
}

.slide-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-strip-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status Indicators */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.status-tag.approved {
    background: var(--status-approved-bg);
    color: var(--status-approved-text);
    border: 1px solid var(--status-approved-border);
}

.status-tag.changes {
    background: var(--status-changes-bg);
    color: var(--status-changes-text);
    border: 1px solid var(--status-changes-border);
}

.status-tag.pending {
    background: var(--status-pending-bg);
    color: var(--status-pending-text);
    border: 1px solid var(--status-pending-border);
}

/* Toast */
.minimal-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: #0B191E;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-modal);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimal-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
