/*
 * Theme Name:  Newsblock Child
 * Theme URI:   https://codesupply.co/themes/newsblock/
 * Description: Newsblock Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    newsblock
 * Version:     1.0.0
 */

:root {
    --stateless-green: #00ff9c;
    --cs-color-styled-heading: #00ff9c;
}

#country-filter-input {
	width:100%;
    margin-bottom:25px;
    padding:12px 16px;
    background: #101010;
    color: var(--cs-color-primary);
    font-size: 1.1rem;
}

.stateless-hero {
    color: #ffffff;
    padding-top:30px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.stateless-hero {
    background:black;
    padding:50px;
    margin-top:40px;
}

.stateless-hero .hero-content p {
    font-size: 1.20rem;
    font-family: "Inter", sans-serif;
}

.stateless-hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.3;
}

.stateless-hero h1 span {
    color: var(--stateless-green);
    padding: 7px 0px;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone; /* Support Safari */
}

.stateless-hero p {
    font-size: 1.2rem;
    color: var(--cs-color-primary);
    line-height: 1.6;
    margin-bottom: 0;
}

.stateless-section {
    margin-bottom: 80px;
}

.stateless-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cs-color-primary);
}

.stateless-section p.section-intro {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    font-family: "Inter", sans-serif;
}

/* Country Pills */
.countries-grid-wrapper {
    position: relative;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.countries-fade-overlay {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 300px;
    background: var(--cs-color-site-background);
    mask-image: linear-gradient(
        to bottom, 
        transparent 0%,
        transparent 25%,
        rgba(0, 0, 0, 0.3) 45%,
        rgba(0, 0, 0, 0.6) 65%,
        rgba(0, 0, 0, 0.9) 85%,
        black 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom, 
        transparent 0%,
        transparent 25%,
        rgba(0, 0, 0, 0.3) 45%,
        rgba(0, 0, 0, 0.6) 65%,
        rgba(0, 0, 0, 0.9) 85%,
        black 100%
    );
    pointer-events: none;
    z-index: 1;
}

.see-all-btn {
    grid-column: 1 / -1;
    background: #000;
    color: var(--cs-color-secondary);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.see-all-btn:hover {
    background: var(--cs-color-contrast-300);
    color: var(--cs-color-primary);
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.country-pill {
    display: inline-block;
    padding: 12px 20px;
    background: #000;
    color: var(--cs-color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.country-pill:hover {
	background: var(--stateless-green);
    color: var(--cs-color-accent-contrast);
    text-decoration: none;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.country-pill.see-all {
    grid-column: 1 / -1;
    background: #000;
    color: var(--cs-color-secondary);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.country-pill.see-all:hover {
    background: var(--cs-color-contrast-300);
    color: var(--cs-color-primary);
    opacity: 1;
    transform: none;
    box-shadow: none;
}

/* Basics Articles */
.basics-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.basic-article {
    background: #000;
    color: white;
    padding: 25px 30px;
    width: 100%;
    text-decoration: none;
    border: 2px solid transparent;
}

.basic-article:hover {
    background: var(--stateless-green);
    color: var(--cs-color-accent-contrast);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.basic-article h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--stateless-green);
}

.basic-article:hover h3 {
    color: var(--cs-color-accent-contrast);
}

.basic-article p {
    color: rgba(255, 255, 255, 1);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 1rem;
}

.basic-article:hover p {
    color: var(--cs-color-accent-contrast);
}

.basic-article .read-more {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.basic-article:hover .read-more {
    color: var(--cs-color-accent-contrast);
}

.basic-article.see-all-content {
    grid-column: 1 / -1;
    background: #000;
    color: var(--cs-color-secondary);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
	padding:12px 20px;
}

.basic-article.see-all-content:hover {
    background: var(--cs-color-contrast-300);
    color: var(--cs-color-primary);
    opacity: 1;
    transform: none;
    box-shadow: none;
}


.basic-article .stateless-badge {
    background: var(--stateless-green);
    color: #000;
    font-size: 1rem;
    padding:3px 3px;
    margin-right:5px;
}

.archive.category h2.cs-entry__title a {
    color: black;
    background: var(--stateless-green); 
    padding: 8px 15px;
    display: inline;
    box-decoration-break: clone;
    line-height: 1.6;
    -webkit-box-decoration-break: clone; /* Support Safari */
}

.page h1.cs-entry__title span, .single h1.cs-entry__title span {
    line-height:1.4em !important;
} 

.cs-entry__title-line span, .cs-entry__title-line a {
    background: var(--stateless-green);
}

.cs-footer__nav .current-menu-item a {
    color: var(--stateless-green);
}

/* Centrer le contenu des pages comme les articles */
.page .cs-entry__container {
	display: grid;
}
@media (min-width: 1020px) {
	.page .cs-entry__container {
		grid-template-columns: minmax(0, var(--cs-entry-content-width));
		justify-content: center;
	}
}
.page .cs-metabar-disabled .cs-entry__container {
	grid-template-columns: minmax(0, var(--cs-entry-content-width));
	justify-content: center;
}
.page .cs-entry__content-wrap .entry-content {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

/* Centrer le titre des pages comme les articles */
.page .cs-sidebar-disabled .cs-entry__header-info {
	max-width: var(--cs-entry-content-medium-width);
	margin: auto auto 0 auto;
}
.page .cs-sidebar-disabled.cs-metabar-disabled .cs-entry__header-info {
	max-width: var(--cs-entry-content-width);
	margin: auto auto 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .stateless-hero h1 {
        font-size: 2.5rem;
    }
    
    .stateless-section h2 {
        font-size: 2rem;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .basics-grid {
        gap: 10px;
    }
    
    .basic-article {
        padding: 20px 25px;
    }
}

@media (max-width: 1200px) {
    .archive.category h2.cs-entry__title a {
        line-height: 1.8em;
        padding: 10px;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone; /* Support Safari */
    }
}

/**
Improve table display
*/

/* Background color of thead */
.entry-content table thead tr {
    background:black;
}
/* Delete border bottom of thead */
.entry-content table thead {
    border-bottom:0px !important;
}
/* Small border to separate columns in header .... */
.entry-content table thead th {
    border-right:1px solid var(--cs-color-contrast-200);
}
/* ... except for the last column */
.entry-content table thead th:last-child {
    border-right:0px;
}

/* Background color of tbody */
.entry-content table tbody tr {
    background:#2a2a2a;
}
/* Reset borders of table */
.entry-content table th, 
.entry-content table td {
    border:0px;
}
/* Small border to separate columns in body */
.entry-content table td {
    border-bottom:1px solid var(--cs-color-contrast-200);
    border-right:1px solid var(--cs-color-contrast-200);
}
/* ... except for the last column ... */
.entry-content table td:last-child {
    border-right:0px;
}
/* ... and the last row. */
.entry-content table tr:last-child td {
    border-bottom:0px;
}

.entry-content:not(:first-child) {
    margin-top: 2rem !important;
}

/**
 * Data Verification Box Styles
 * Encadré de vérification des données affiché au-dessus du contenu des articles
 */
.stateless-data-verification-box {
    background: #000000;
    border-radius: 8px;
    padding: 20px 24px;
}

.stateless-data-verification-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.stateless-verification-icon {
    background: var(--stateless-green);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.stateless-verification-text {
    flex: 1;
    min-width: 0;
}

.stateless-verification-date {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.stateless-author-info {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.9rem;
}

.stateless-about-link {
    flex-shrink: 0;
    margin-top: auto;
}

.stateless-about-link {
    color: var(--stateless-green);
}

.stateless-about-link:hover {
    text-decoration: underline;
    color: var(--stateless-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stateless-data-verification-box {
        padding: 16px 18px;
    }
    
    .stateless-data-verification-content {
        gap: 12px;
    }
    
    .stateless-verification-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/**
Footer
*/

.cs-footer__desc {
    font-size:14px;
}