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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c2c2c 0%, #3a3a3a 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.header-logo-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-title {
    font-size: 2.8rem;
    font-weight: 300;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.header-quote {
    font-style: italic;
    opacity: 0.9;
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.header-author {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-logo-icon {
        width: 100px;
        height: 100px;
    }
    
    .header-content {
        gap: 20px;
    }
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.content {
    padding: 30px;
}

.search-section {
    margin-bottom: 30px;
}

.search-box {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #edebe9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #5b9bd5;
}

.search-btn {
    display: none; /* Hidden - auto-search is enabled */
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #edebe9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #5b9bd5;
    background: #f3f2f1;
}

.filter-btn.active {
    background: #5b9bd5;
    color: white;
    border-color: #5b9bd5;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f3f2f1;
    border-radius: 4px;
    border-left: 4px solid #5b9bd5;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #5b9bd5;
}

.stat-label {
    font-size: 0.85rem;
    color: #605e5c;
    margin-top: 5px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.icon-card {
    background: white;
    border: 2px solid #edebe9;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.icon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #5b9bd5;
}

.icon-image {
    width: 128px;
    height: 128px;
    margin: 0 auto 15px;
    background: #f3f2f1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-name {
    font-weight: 600;
    color: #323130;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.icon-category {
    font-size: 0.8rem;
    color: #605e5c;
    margin-bottom: 10px;
}

.icon-source {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 8px;
}

.source-github {
    background-color: #e8f3fb;
    color: #5b9bd5;
}

.source-chocolatey {
    background-color: #fff4e5;
    color: #d97706;
}

.icon-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.icon-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.download-btn {
    background: #5b9bd5;
    color: white;
}

.download-btn:hover {
    background: #4a8bc2;
}

.preview-btn {
    background: #f3f2f1;
    color: #323130;
}

.preview-btn:hover {
    background: #edebe9;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 4px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #323130;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #605e5c;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #323130;
    background: #f3f2f1;
    border-radius: 4px;
}

.preview-image {
    width: 256px;
    height: 256px;
    margin: 20px auto;
    background: #f3f2f1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-info {
    background: #f3f2f1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #5b9bd5;
}

.preview-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.preview-info-item:last-child {
    margin-bottom: 0;
}

.preview-info-label {
    color: #605e5c;
}

.preview-info-value {
    font-weight: 600;
    color: #323130;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #605e5c;
    grid-column: 1/-1;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
}
