@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --bg-color: #030712;
    --surface-color: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.05);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.2);
    --glass-blur: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.03), transparent 40%);
    background-attachment: fixed;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.pulse-dot {
    display: block; width: 8px; height: 8px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.breadcrumb {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.5rem;
    display: flex; gap: 0.5rem; align-items: center;
}
.breadcrumb span { cursor: pointer; transition: color 0.3s; }
.breadcrumb span:hover { color: var(--text-primary); }
.breadcrumb .current { color: var(--accent-color); font-weight: 600; pointer-events: none; }

main { padding: 2rem 5%; max-width: 1500px; margin: 0 auto; }

.section-title { font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; }

/* Macro Area Grid */
.macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem; margin-bottom: 4rem;
}

.macro-card {
    position: relative; border-radius: 24px; overflow: hidden;
    height: 320px; cursor: pointer; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.macro-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 30px var(--accent-glow);
    border: 1px solid rgba(255,255,255,0.15);
}

.macro-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.macro-card:hover img { transform: scale(1.08); }

.macro-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(3,7,18,0.98) 0%, rgba(3,7,18,0.4) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2.5rem; pointer-events: none; z-index: 1;
}

.macro-overlay h3 { font-size: 2.5rem; font-family: 'Playfair Display', serif; margin-bottom: 0.5rem; color: #fff; }
.macro-overlay p { color: var(--text-secondary); font-size: 1.1rem; font-weight: 400; }

/* Flags Overlay */
.macro-flags {
    position: absolute; top: 1.5rem; right: 1.5rem;
    display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end;
    max-width: 50%; z-index: 2; pointer-events: none;
}
.macro-flag { font-size: 1.4rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); opacity: 0.9; }

/* Region Grid */
.region-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem; margin-bottom: 4rem;
}

.region-card {
    background: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 2rem; text-align: center; cursor: pointer;
    transition: all 0.4s ease; display: flex; flex-direction: column; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}

.region-card:hover {
    transform: translateY(-5px); background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* News Grid */
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem;
}

.card {
    background: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: 20px; overflow: hidden; backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; display: flex; flex-direction: column;
}

.card:hover {
    transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1);
}

.card-img-wrapper { position: relative; width: 100%; height: 200px; overflow: hidden; background: #000; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; opacity: 0.9;}
.card:hover .card-img { transform: scale(1.05); opacity: 1; }

.card-category {
    position: absolute; top: 1rem; left: 1rem; background: rgba(3, 7, 18, 0.8); color: #fff;
    padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(4px); z-index: 2;
}

.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.8rem; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.35; color: #fff;}
.card-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Utilities */
.loading { display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 2rem; color: var(--text-secondary); font-size: 1rem; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.1); border-radius: 50%; border-top-color: var(--accent-color); animation: spin 1s ease-in-out infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
    background: rgba(239, 68, 68, 0.05); border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: 16px; padding: 2rem; text-align: center; width: 100%;
}

/* --- FOOTER & LEGAL --- */
footer {
    text-align: center;
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}
footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--text-primary);
}

/* --- GDPR COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.btn-accept {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-accept:hover {
    background: #2563eb;
}
.btn-decline {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-decline:hover {
    background: rgba(255,255,255,0.1);
}

/* --- HD CIRCLE FLAGS --- */
.circle-flag {
    width: 65px; height: 65px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); margin-bottom: 1rem;
    border: 2px solid rgba(255,255,255,0.1); transition: transform 0.3s ease;
}
.region-card:hover .circle-flag { transform: scale(1.1); box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4); }

/* --- QUICK NAV FLAGS --- */
.quick-nav-flags {
    display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
    margin-bottom: 2.5rem; background: rgba(0,0,0,0.2); padding: 1rem 1.5rem;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.05);
}
.quick-flag-wrapper {
    cursor: pointer; opacity: 0.4; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%); width: 35px; height: 35px; border-radius: 50%; overflow: hidden;
    border: 2px solid transparent;
}
.quick-circle-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-flag-wrapper:hover {
    opacity: 1; filter: grayscale(0%); transform: scale(1.2); border-color: rgba(255,255,255,0.3);
}
.quick-flag-wrapper.active {
    opacity: 1; filter: grayscale(0%); transform: scale(1.3);
    border-color: var(--accent-color); box-shadow: 0 0 10px var(--accent-glow);
}

/* --- HUB SWITCHER --- */
.hub-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary);
    padding: 10px 24px; border-radius: 30px; cursor: pointer; font-size: 1rem; font-weight: 600;
    transition: all 0.3s;
}
.hub-btn:hover {
    background: rgba(255,255,255,0.05); color: var(--text-primary);
}
.hub-btn.active {
    background: rgba(239, 68, 68, 0.1); border-color: #ef4444; color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}
#btn-news.active {
    background: rgba(56, 189, 248, 0.1); border-color: var(--accent-color); color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}
