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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #18202a;
}

.header {
    background: #111827;
    color: white;
    padding: 18px 16px;
}

.brand {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.brand h1 {
    font-size: 21px;
    margin-bottom: 3px;
}

.brand p {
    font-size: 12px;
    color: #cbd5e1;
}

.notice {
    background: #dcfce7;
    color: #166534;
    padding: 10px 16px;
    text-align: center;
    font-size: 11px;
    line-height: 18px;
}

.notice strong {
    margin-right: 6px;
}

.container {
    width: min(1100px, calc(100% - 24px));
    margin: auto;
}

.hero {
    text-align: center;
    padding: 32px 10px 24px;
}

.small-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 7px;
}

.hero h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.hero > p:last-child {
    color: #64748b;
    font-size: 14px;
}

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

#searchInput {
    width: 100%;
    height: 48px;
    border: 1px solid #d8dee6;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: white;
}

#searchInput:focus {
    border-color: #22c55e;
}

.archive-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.archive-heading p {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 5px;
}

.archive-heading h2 {
    font-size: 21px;
}

#appCount {
    white-space: nowrap;
    background: #111827;
    color: white;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.app-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.app-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.app-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}

.app-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    word-break: break-word;
}

.app-rating {
    font-size: 12px;
    color: #64748b;
}

.app-description {
    color: #64748b;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 12px;
    flex: 1;
}

.app-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
}

.app-buttons {
    display: flex;
    gap: 8px;
}

.app-button {
    flex: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 9px;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.download-button {
    background: #22c55e;
    color: white;
}

.details-button {
    background: #f1f5f9;
    color: #334155;
}

.no-results {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 30px 15px;
    text-align: center;
    margin-bottom: 30px;
}

.no-results h3 {
    margin-bottom: 6px;
}

.no-results p {
    color: #64748b;
    font-size: 13px;
}

.footer {
    margin-top: 45px;
    padding: 30px 15px;
    text-align: center;
    background: #111827;
    color: white;
}

.footer h3 {
    margin-bottom: 7px;
}

.footer p {
    color: #cbd5e1;
    font-size: 12px;
}

.footer .copyright {
    margin-top: 12px;
    font-size: 10px;
    color: #94a3b8;
}


/* Tablet */
@media (max-width: 800px) {
    .app-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile */
@media (max-width: 560px) {

    .header {
        padding: 15px 12px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;
    }

    .brand h1 {
        font-size: 18px;
    }

    .hero {
        padding-top: 26px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .app-list {
        grid-template-columns: 1fr;
    }

    .archive-heading {
        align-items: center;
    }

    .archive-heading h2 {
        font-size: 18px;
    }
}
