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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    color: #667eea;
    margin-bottom: 15px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

nav a:hover {
    background: #667eea;
    color: white;
}

main {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.hero {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.hero h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    color: #666;
    font-size: 1.2em;
}

.api-demo, .data-display {
    margin: 30px 0;
}

h3 {
    color: #667eea;
    margin-bottom: 20px;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

#dataList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.data-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.data-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.data-item h4 {
    color: #667eea;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8em;
    }
    
    nav {
        flex-direction: column;
    }
}
