:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
}

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

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Search Component */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    box-shadow: var(--shadow-lg);
    border-radius: 1rem;
    transition: transform 0.2s ease;
}

.search-input-wrapper:focus-within {
    transform: translateY(-2px);
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    font-size: 1.1rem;
    border: 2px solid transparent;
    border-radius: 1rem;
    background: var(--surface-color);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-results.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.result-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f1f5f9;
}

.result-name {
    font-weight: 600;
}

.result-category {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 500;
}

/* Categories Grid */
.categories-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--surface-color);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Item Detail Page */
.item-detail {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.item-card {
    background: var(--surface-color);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.item-header {
    margin-bottom: 2rem;
}

.item-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.bin-indicator {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: #f8fafc;
    margin-bottom: 2rem;
}

.bin-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.bin-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.instruction-box {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.instruction-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-items {
    margin-top: 4rem;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Category Colors */
.bg-blue { background-color: #3b82f6; color: white; }
.bg-green { background-color: #22c55e; color: white; }
.bg-yellow { background-color: #eab308; color: black; }
.bg-brown { background-color: #854d0e; color: white; }
.bg-black { background-color: #1f2937; color: white; }
.bg-red { background-color: #ef4444; color: white; }
.bg-purple { background-color: #a855f7; color: white; }
.bg-orange { background-color: #f97316; color: white; }

.text-blue { color: #3b82f6; }
.text-green { color: #22c55e; }
.text-yellow { color: #eab308; }
.text-brown { color: #854d0e; }
.text-black { color: #1f2937; }
.text-red { color: #ef4444; }
.text-purple { color: #a855f7; }
.text-orange { color: #f97316; }

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .item-title { font-size: 2rem; }
    .item-card { padding: 1.5rem; }
}
