/* Panel Impulso Digital MK — Custom styles over Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --wine: #7A1A2C;
    --wine-light: #9B2D42;
    --wine-lighter: #C45060;
    --wine-text: #E8A0A0;
    --cream: #F5EDE0;
    --cream-dark: #E8DDC9;
    --cream-darker: #D4C9B5;
    --gold: #C9A961;
    --gold-light: #E0C882;
    --bg-card: #FFFFFF;
    --bg-page: #F9F5EF;
    --border: #E8DDC9;
    --text-primary: #2D1A1A;
    --text-secondary: #6B5050;
    --text-muted: #9B8585;
    --success: #2D8B5E;
    --warning: #C9A961;
    --danger: #C45060;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, #2D1A1A 0%, #3D2222 100%);
    min-height: 100vh;
}

.sidebar-brand {
    font-family: 'Playfair Display', serif;
}

.sidebar-link {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(197, 80, 96, 0.15);
    border-left-color: var(--wine-lighter);
}

/* Cards */
.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.card-panel:hover {
    border-color: var(--wine-light);
    box-shadow: 0 4px 12px rgba(122, 26, 44, 0.08);
}

/* Stats */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wine);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status badges */
.badge-pendiente {
    background: rgba(201, 169, 97, 0.12);
    color: #8B6914;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.badge-aprobada {
    background: rgba(45, 139, 94, 0.1);
    color: #1B6B42;
    border: 1px solid rgba(45, 139, 94, 0.25);
}

.badge-en-produccion {
    background: rgba(96, 165, 250, 0.1);
    color: #1D5FA8;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.badge-producida {
    background: rgba(167, 139, 250, 0.1);
    color: #5B3EC9;
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.badge-publicada {
    background: rgba(45, 139, 94, 0.15);
    color: #0F5132;
    border: 1px solid rgba(45, 139, 94, 0.35);
}

.badge-cambios-pedidos {
    background: rgba(196, 80, 96, 0.1);
    color: #7A1A2C;
    border: 1px solid rgba(196, 80, 96, 0.25);
}

.badge-rechazada {
    background: rgba(196, 80, 96, 0.15);
    color: #5C0F1D;
    border: 1px solid rgba(196, 80, 96, 0.35);
}

/* Banner */
.banner-warning {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(201, 169, 97, 0.04));
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-left: 4px solid var(--gold);
}

/* Piece card */
.piece-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.15s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.piece-card:hover {
    border-color: var(--wine-light);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(122, 26, 44, 0.06);
}

.piece-type-feed {
    border-left: 3px solid var(--wine-lighter);
}

.piece-type-story {
    border-left: 3px solid #A78BFA;
}

/* Filters */
.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--wine-light);
    box-shadow: 0 0 0 2px rgba(122, 26, 44, 0.1);
}

/* Piece type badge (detail view) */
.piece-type-badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 16px;
}

.piece-type-badge-feed {
    background-color: var(--wine);
    color: var(--cream);
}

.piece-type-badge-story {
    background-color: #A78BFA;
    color: white;
}

/* Piece title */
.piece-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 12px 0;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

/* Kanban */
.kanban-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.kanban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.kanban-header-aprobada { background: rgba(45, 139, 94, 0.06); }
.kanban-header-produccion { background: rgba(96, 165, 250, 0.06); }
.kanban-header-producida { background: rgba(201, 169, 97, 0.06); }

.kanban-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.kanban-count {
    font-size: 0.75rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(122, 26, 44, 0.08);
    color: var(--wine);
}

.kanban-body {
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.production-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.production-card:hover {
    border-color: var(--wine-light);
}

.production-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.production-btn:hover { opacity: 0.85; }

.production-btn-start {
    background: var(--success);
    color: white;
}

.production-btn-produced {
    background: #3B82F6;
    color: white;
}

.production-btn-publish {
    background: var(--gold);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
}
