* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1e293b; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
nav { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: #475569; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #667eea; }
.hero { background: rgba(255,255,255,0.95); padding: 3rem 2rem; text-align: center; margin: 2rem auto; max-width: 1200px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.controls { background: rgba(255,255,255,0.95); padding: 1.5rem; margin: 2rem auto; max-width: 800px; border-radius: 12px; display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label { font-weight: 600; color: #475569; cursor: pointer; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
.cat-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.cat-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
.cat-card img { width: 100%; height: 280px; object-fit: cover; display: block; cursor: pointer; }
.cat-card .caption { padding: 1rem; text-align: center; color: #64748b; font-size: 0.9rem; }
.loading { text-align: center; padding: 3rem; color: white; font-size: 1.2rem; grid-column: 1/-1; }
.loader { display: inline-block; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.btn-primary { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(102,126,234,0.4); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: white; color: #667eea; border: 2px solid #667eea; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { background: #667eea; color: white; }
.load-more { text-align: center; margin: 2rem 0; }
.page-header { background: rgba(255,255,255,0.95); padding: 3rem 2rem; text-align: center; margin: 2rem auto; max-width: 1200px; border-radius: 16px; }
.random-cat { background: rgba(255,255,255,0.95); padding: 3rem 2rem; margin: 2rem auto; max-width: 800px; border-radius: 16px; text-align: center; }
.random-container { margin: 2rem 0; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.random-container img { max-width: 100%; max-height: 500px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
footer { background: rgba(15,23,42,0.95); color: #cbd5e1; text-align: center; padding: 2rem; margin-top: 4rem; }
footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: white; }
@media (max-width: 768px) { .nav-links { display: none; } .cat-grid { grid-template-columns: 1fr; } }
