/* ===== poets-by-country.php — extracted inline <style> → poets-by-country.css ===== */
.country-page-wrapper {
    width: 100%;
    min-height: 80vh;
    padding: 1.5rem 0 3.5rem 0;
    box-sizing: border-box;
}

.country-page-container {
    width: 94%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Breadcrumb */
.country-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(29, 79, 105, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.country-breadcrumb a {
    color: #1d4f69;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.country-breadcrumb a:hover {
    color: #b98b42;
}

.country-breadcrumb .sep {
    color: #cbd5e1;
    font-weight: 400;
}

.country-breadcrumb .current {
    color: #b98b42;
    font-weight: 700;
}

/* Hero Banner */
.country-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1d4f69 0%, #0f2b3c 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 43, 60, 0.25);
    border: 1px solid rgba(216, 171, 78, 0.3);
    text-align: center;
}

.country-hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(216, 171, 78, 0.18) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(29, 79, 105, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.country-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.country-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(216, 171, 78, 0.18);
    color: #fbd38d;
    border: 1px solid rgba(216, 171, 78, 0.35);
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
}

.country-hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.country-hero-subtitle {
    font-size: 1.12rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin: 0;
}

/* Search Box */
.country-search-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(216, 171, 78, 0.4);
}

.country-search-box i {
    position: absolute;
    right: 20px;
    color: #94a3b8;
    font-size: 1.05rem;
}

.country-search-box input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0.75rem 2.8rem 0.75rem 1rem;
    font-size: 0.98rem;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
}

/* Stats Strip */
.country-stats-strip {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.85rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.country-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.country-stat-item i {
    color: #fbd38d;
    font-size: 1.1rem;
}

.country-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.country-stat-lbl {
    font-size: 0.78rem;
    color: #cbd5e1;
}

/* ==========================================================================
   COUNTRY CARDS GRID & ISOLATED CARDS
   ========================================================================== */
.country-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.country-card {
    height: auto;
    min-height: 110px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: right;
}

.country-card:hover {
    border-color: #b98b42;
    background: #fdfcf9;
}

.country-card-emblem {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4f69, #0f2b3c);
    color: #fbd38d;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(216, 171, 78, 0.4);
    flex-shrink: 0;
}

.country-card-emblem i {
    font-size: 1.15rem;
    color: #fbd38d;
    margin: 0;
}

.country-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.country-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1d4f69;
    margin: 0;
    transition: color 0.2s ease;
}

.country-card:hover .country-card-name {
    color: #b98b42;
}

.country-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.country-card-tag {
    font-size: 0.78rem;
    color: #b98b42;
    font-weight: 700;
}

/* Empty Box */
.country-empty-card {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.country-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.country-empty-desc {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .country-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .country-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .country-hero-title {
        font-size: 1.85rem;
    }
    .country-stats-strip {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .country-cards-grid {
        grid-template-columns: 1fr;
    }
}
