/*
 * Cooka Vendor Dashboard Premium UI (Phase 2)
 * Glassmorphism & Dark Mode Aesthetics
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --cooka-bg: #0f172a; /* Deep dark slate */
    --cooka-surface: rgba(30, 41, 59, 0.7); /* Translucent surface */
    --cooka-surface-hover: rgba(30, 41, 59, 0.9);
    --cooka-border: rgba(255, 255, 255, 0.1);
    --cooka-text-primary: #f8fafc;
    --cooka-text-secondary: #94a3b8;
    --cooka-accent: #3b82f6;
    --cooka-accent-hover: #2563eb;
    --cooka-success: #10b981;
    --cooka-warning: #f59e0b;
    --cooka-danger: #ef4444;
    --cooka-gold: #fbbf24;
}

/* Base Body Styles for Dashboard */
body.page-template-page-anbieter-status {
    background-color: var(--cooka-bg);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(251, 191, 36, 0.1), transparent 25%);
    background-attachment: fixed;
    color: var(--cooka-text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
.vendor-status h1, .vendor-status h2, .vendor-status h3 {
    color: var(--cooka-text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Container */
.vendor-status-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Premium Dashboard Card (Glassmorphism) */
.dashboard-card {
    background: var(--cooka-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cooka-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: var(--cooka-surface-hover);
}

/* Grid Layout for Status Cards */
.status-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.status-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.status-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.status-card h2 {
    font-size: 1.25rem;
    margin: 0;
}

/* Status Chips (Pills) */
.status-chip {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
}

.status-active .status-chip {
    background: rgba(16, 185, 129, 0.2);
    color: var(--cooka-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-problem .status-chip {
    background: rgba(239, 68, 68, 0.2);
    color: var(--cooka-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pending .status-chip {
    background: rgba(245, 158, 11, 0.2);
    color: var(--cooka-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Content inside cards */
.status-card-copy {
    color: var(--cooka-text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 24px;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cooka-accent), #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cooka-accent-hover), #1e40af);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.status-secondary-link {
    margin-top: 12px;
    display: inline-block;
    color: var(--cooka-text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.status-secondary-link:hover {
    color: var(--cooka-text-primary);
    text-decoration: underline;
}

/* Trust Layer Card (Gold Highlight) */
.trust-layer-card {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.05), rgba(30, 41, 59, 0.8));
    border-color: rgba(251, 191, 36, 0.2);
}

.trust-layer-head h2 {
    color: var(--cooka-gold);
}

.trust-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.trust-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cooka-gold), #f59e0b);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badges */
.readiness-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.readiness-ready {
    background: rgba(16, 185, 129, 0.15);
    color: var(--cooka-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.readiness-draft, .readiness-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--cooka-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Progress Checklist */
.progress-checklist {
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--cooka-border);
    color: var(--cooka-text-secondary);
    transition: color 0.3s;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item.completed {
    color: var(--cooka-success);
}

.checklist-item.completed .check-icon::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
}

.checklist-item:not(.completed) .check-icon::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--cooka-border);
    border-radius: 50%;
    margin-right: 12px;
}

/* Legal Responsibility Banner (v2.2.53b) */
.legal-responsibility-banner {
    background: rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid var(--cooka-accent);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.legal-responsibility-banner .icon {
    font-size: 24px;
}

.legal-responsibility-banner h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--cooka-text-primary);
}

.legal-responsibility-banner p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--cooka-text-secondary);
}

.legal-responsibility-banner a {
    color: var(--cooka-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.legal-responsibility-banner a:hover {
    text-decoration: underline;
}
