.entry-meta,
.byline,
.cat-links,
.post-author,
.post-date {
    display: none !important;
}

/* =============================================
   Chartivio Frontend Styles
   ============================================= */
.chartivio-shortcode-wrapper {
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.chartivio-inner {
    margin: 0 auto;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.chartivio-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.chartivio-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    /* Fancy fade-in for premium feel */
    animation: chartivioFadeIn 0.8s ease-out both;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@keyframes chartivioFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chartivio-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    margin: 0 auto;
}


/* =============================================
   Responsive — Tablet (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    .chartivio-shortcode-wrapper {
        margin-bottom: 20px;
    }

    .chartivio-title {
        font-size: 1.1rem;
        margin: 0 0 10px 0;
    }

    /* Scale container height for mobile (Uses CSS Variable set in shortcode) */
    .chartivio-container {
        height: 300px !important; /* Fallback */
        height: calc(var(--chart-height, 400px) * 0.75) !important;
        padding: 8px;
        border-radius: 4px;
    }
}


/* =============================================
   Responsive — Mobile (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    .chartivio-shortcode-wrapper {
        margin-bottom: 15px;
    }

    .chartivio-title {
        font-size: 1rem;
        margin: 0 0 8px 0;
    }

    .chartivio-container {
        height: 240px !important; /* Fallback */
        height: calc(var(--chart-height, 400px) * 0.6) !important;
        padding: 6px;
    }
}

.chartivio-error-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    color: #ef4444;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
    flex-direction: column !important;
    gap: 12px;
    border: 1px solid #fee2e2;
}

.chartivio-error-overlay svg {
    color: #ef4444;
}

.chartivio-error-overlay .error-message {
    line-height: 1.5;
    max-width: 280px;
}
