/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 50px 0 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.logo svg {
    color: #4f46e5;
}

.tagline {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.search-box svg {
    color: #999;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
}

.search-box input::placeholder {
    color: #999;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.filter-tag.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

/* Demo Card */
.demo-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s;
}

.demo-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.demo-card.hidden {
    display: none;
}

/* Card Image */
.card-image {
    position: relative;
    height: 180px;
    background: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,0.8);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge.coming-soon {
    background: #f59e0b;
}

/* Card Content */
.card-content {
    padding: 20px;
}

.category {
    display: inline-block;
    font-size: 12px;
    color: #4f46e5;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tech-stack span {
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

/* Button */
.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-demo:hover {
    background: #4338ca;
}

.btn-demo.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e8e8e8;
}

.footer p {
    color: #999;
    font-size: 13px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .header {
        padding: 30px 0 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        max-width: 100%;
    }
}
