/* Configuração Geral e Fundo Preto/Azulado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000000;
    color: #f1f5f9;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(7, 60, 75, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}


/* Cabeçalho e Títulos */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #94a3b8;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.country-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.country-hero h2 {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.country-hero p {
    color: #94a3b8;
}

/* Barra de Busca Estilo Glass */
.search-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.search-container input {
    width: 100%;
    max-width: 450px;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: #94a3b8;
}

.search-container input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

/* Grid de Países - Força 3 colunas (mesmo no telemóvel) */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0.2rem;
}

/* Cartões com Efeito Glassmorphism */
.country-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #f1f5f9;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.25);
}

.country-flag {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.country-card h3 {
    color: #60a5fa;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.country-card p {
    color: #94a3b8;
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Seletor de Pratos nas Páginas Internas */
.dish-selector {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.dish-btn {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dish-btn:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.dish-btn.active {
    background: #2563eb;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
}

/* Estilos para as Páginas de Receitas Internas */
.back-link {
    display: inline-block;
    color: #60a5fa;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #93c5fd;
}

.recipe-container {
    max-width: 800px;
    margin: 0 auto;
}

.recipe-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.recipe-card h2 {
    color: #60a5fa;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.recipe-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.recipe-image-container {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.recipe-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.recipe-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-badge {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.recipe-section {
    margin-top: 2rem;
}

.recipe-section h3 {
    color: #e2e8f0;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.ingredients-list, .instructions-list {
    color: #cbd5e1;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.instructions-list li {
    margin-bottom: 0.8rem;
}

/* Rodapé */
footer {
    text-align: center;
    margin-top: 4rem;
    color: #64748b;
    font-size: 0.9rem;
}