/**
 * CookieBoxs News Page Styles
 */

/* Hide WordPress admin notices on news page */
.notice:not(.cookieboxs-notice),
.update-nag,
.updated,
.error:not(.cookieboxs-error),
.is-dismissible,
div.update-message,
#wpbody-content > .wrap > .notice,
#wpbody-content > .notice,
.wp-header-end + .notice,
.yoast-notice,
.wpseo-notice,
.jetpack-jitm-message,
.elementor-message,
.woocommerce-message,
.woocommerce-store-alerts,
.e-notice,
#message.updated,
#setting-error-settings_updated {
    display: none !important;
}

.cb-news-wrap {
    max-width: 1000px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px 0;
}

.cb-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cb-news-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.cb-news-header h1 span {
    color: #6366f1;
}

.cb-news-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}

.cb-news-refresh:hover {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}

.cb-news-status {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.cb-news-empty {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
}

.cb-news-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cb-news-empty h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 8px;
}

.cb-news-empty p {
    color: #64748b;
    margin: 0;
}

.cb-news-grid {
    display: grid;
    gap: 24px;
}

.cb-news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s;
    display: flex;
    flex-direction: row;
}

.cb-news-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.cb-news-card-banner {
    width: 280px;
    min-height: 160px;
    background: #f1f5f9;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.cb-news-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.cb-news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
}

.cb-news-card-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.cb-news-card-plugin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 8px;
}

.cb-news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.3;
}

.cb-news-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.cb-news-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-news-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
}

.cb-news-card-btn:hover {
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.cb-news-card-btn svg {
    width: 16px;
    height: 16px;
}

.cb-news-featured {
    grid-column: 1 / -1;
}

.cb-news-featured .cb-news-card {
    flex-direction: row;
}

.cb-news-featured .cb-news-card-banner {
    width: 400px;
    min-height: 220px;
}

.cb-news-featured .cb-news-card-title {
    font-size: 24px;
}

.cb-news-promo {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cb-news-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
}

.cb-news-promo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.cb-news-promo-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.cb-news-promo-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.cb-news-promo-btn {
    margin-left: auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    flex-shrink: 0;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.cb-news-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .cb-news-card,
    .cb-news-featured .cb-news-card {
        flex-direction: column;
    }
    
    .cb-news-card-banner,
    .cb-news-featured .cb-news-card-banner {
        width: 100%;
        min-height: 180px;
    }
    
    .cb-news-promo {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .cb-news-promo-icon {
        margin: 0 auto;
    }
    
    .cb-news-promo-btn {
        margin: 16px 0 0;
    }
}
