Deixe esse CSS responsivo para desktop:
/* Reset e configurações globais */
- {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
}
.app {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
.header {
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
color: white;
padding: 3rem 2rem;
text-align: center;
position: relative;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,');
opacity: 0.3;
}
.header-content {
position: relative;
z-index: 1;
max-width: 1200px;
margin: 0 auto;
}
.olympic-rings {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
margin-bottom: 2rem;
animation: fadeInUp 1s ease-out;
}
.ring {
width: 40px;
height: 40px;
border: 4px solid;
border-radius: 50%;
animation: ringPulse 2s ease-in-out infinite;
}
.ring-blue { border-color: #0085c3; animation-delay: 0s; }
.ring-yellow { border-color: #ffd700; animation-delay: 0.2s; }
.ring-black { border-color: #000; animation-delay: 0.4s; }
.ring-green { border-color: #00a651; animation-delay: 0.6s; }
.ring-red { border-color: #ee334e; animation-delay: 0.8s; }
.main-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
animation: fadeInUp 1s ease-out 0.3s both;
}
.subtitle {
font-size: 1.3rem;
opacity: 0.9;
font-weight: 300;
animation: fadeInUp 1s ease-out 0.6s both;
}
/* Main Content */
.main-content {
flex: 1;
padding: 4rem 2rem;
max-width: 1400px;
margin: 0 auto;
width: 100%;
}
section {
margin-bottom: 5rem;
}
.section-header {
text-align: center;
margin-bottom: 3rem;
animation: fadeInUp 1s ease-out;
}
.section-title {
font-size: 2.5rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 1rem;
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.section-description {
font-size: 1.1rem;
color: #7f8c8d;
max-width: 600px;
margin: 0 auto;
}
/* Grid de países */
.countries-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.country-card {
background: white;
border-radius: 20px;
padding: 2rem;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
animation: fadeInUp 1s ease-out both;
animation-delay: calc(var(--index, 0) * 0.1s);
}
.country-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.country-card.podium {
background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
border: 2px solid var(--medal-color);
}
.country-card.podium::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: var(--medal-color);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.position {
background: var(--medal-color, #4A90E2);
color: white;
padding: 0.5rem 1rem;
border-radius: 25px;
font-weight: 600;
font-size: 1.1rem;
}
.medal-icon {
font-size: 2rem;
animation: bounce 2s ease-in-out infinite;
}
.card-content {
text-align: center;
}
.country-name {
font-size: 1.8rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 0.5rem;
}
.country-code {
color: #7f8c8d;
font-size: 1rem;
margin-bottom: 1.5rem;
}
.medal-count {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
.medal-number {
font-size: 3rem;
font-weight: 700;
color: var(--medal-color, #4A90E2);
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.medal-label {
font-size: 1.1rem;
color: #7f8c8d;
text-transform: uppercase;
letter-spacing: 1px;
}
.card-decoration {
position: absolute;
bottom: -50px;
right: -50px;
width: 100px;
height: 100px;
background: var(--medal-color, #4A90E2);
border-radius: 50%;
opacity: 0.1;
}
/* =================================================== /
/ Estilos para listas de dados genéricas (Consultas 2-5) /
/ =================================================== */
.data-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.data-list-item {
background: #ffffff;
padding: 1rem 1.5rem;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s ease;
animation: fadeInUp 0.5s ease-out both;
}
.data-list-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.item-title {
font-weight: 500;
color: #34495e;
}
.item-value {
font-weight: 600;
color: #3498db;
}
.data-list-item.special-item {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.data-list-item.special-item .item-title,
.data-list-item.special-item .item-value {
color: white;
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.no-data-message {
text-align: center;
color: #7f8c8d;
font-style: italic;
padding: 2rem;
background: #f8f9fa;
border-radius: 12px;
}
/* Loading */
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 5rem 0;
}
.loading-spinner {
width: 60px;
height: 60px;
border: 4px solid rgba(0,0,0,0.1);
border-top: 4px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 2rem;
}
.loading-text {
font-size: 1.2rem;
color: #34495e;
}
/* Error */
.error-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 5rem 0;
text-align: center;
}
.error-icon {
font-size: 4rem;
margin-bottom: 1rem;
color: #e74c3c;
}
.error-title {
font-size: 2rem;
margin-bottom: 1rem;
color: #34495e;
}
.error-message {
font-size: 1.1rem;
margin-bottom: 2rem;
color: #7f8c8d;
}
.retry-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 1rem 2rem;
border-radius: 25px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.retry-button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
/* Footer */
.footer {
background: #2c3e50;
color: white;
text-align: center;
padding: 2rem;
margin-top: auto;
}
/* Animações */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes ringPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-10px); }
60% { transform: translateY(-5px); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Responsividade */
@media (max-width: 768px) {
.main-title {
font-size: 2.5rem;
}
.subtitle {
font-size: 1.1rem;
}
.section-title {
font-size: 2rem;
}
.countries-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.country-card {
padding: 1.5rem;
}
.country-name {
font-size: 1.5rem;
}
.medal-number {
font-size: 2.5rem;
}
.olympic-rings {
gap: 5px;
}
.ring {
width: 30px;
height: 30px;
border-width: 3px;
}
.main-content {
padding: 2rem 1rem;
}
.header {
padding: 2rem 1rem;
}
}
@media (max-width: 480px) {
.main-title {
font-size: 2rem;
}
.country-card {
padding: 1rem;
}
.medal-number {
font-size: 2rem;
}
.data-list-item {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.item-value {
font-size: 0.9rem;
}
}