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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #242424 0%, #242424 100%);
    min-height: 100vh;
    color: #242424;
}

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

header {
    background: linear-gradient(135deg, #F3EBC9 0%, #ffffff 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(36, 36, 36, 0.3);
    margin-bottom: 50px;
    border-bottom: 5px solid #EE7243;
}

.header-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.admin-link {
    background: linear-gradient(135deg, #EE7243 0%, #F4A445 100%);
    color: #242424;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(238, 114, 67, 0.4);
    border: 2px solid #242424;
    white-space: nowrap;
}

.admin-link:hover {
    background: linear-gradient(135deg, #F4A445 0%, #FCC943 100%);
    box-shadow: 0 6px 20px rgba(244, 164, 69, 0.5);
    transform: translateY(-2px);
}

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

#searchInput {
    width: 100%;
    max-width: 700px;
    padding: 18px 25px;
    font-size: 16px;
    border: 3px solid #242424;
    border-radius: 50px;
    background: #F3EBC9;
    box-shadow: 0 8px 25px rgba(36, 36, 36, 0.2);
    display: block;
    margin: 0 auto;
    outline: none;
    transition: all 0.3s;
    color: #242424;
}

#searchInput::placeholder {
    color: rgba(36, 36, 36, 0.5);
}

#searchInput:focus {
    box-shadow: 0 10px 35px rgba(109, 70, 146, 0.4);
    transform: translateY(-2px);
    border-color: #242424;
    background: white;
}

/* Filtro de Plataformas */
.platform-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #F3EBC9 0%, #ffffff 100%);
    border-radius: 20px;
    border: 3px solid #242424;
    box-shadow: 0 8px 25px rgba(36, 36, 36, 0.2);
}

.filter-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid #242424;
    border-radius: 50px;
    background: white;
    color: #242424;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(36, 36, 36, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(36, 36, 36, 0.3);
    background: linear-gradient(135deg, #F3EBC9 0%, #ffffff 100%);
}

.filter-btn.active {
    background: linear-gradient(135deg, #EE7243 0%, #F4A445 100%);
    color: #242424;
    border-color: #242424;
    box-shadow: 0 6px 20px rgba(238, 114, 67, 0.4);
    transform: translateY(-2px);
}

.filter-btn i {
    font-size: 1.1em;
}

/* Barra de Estatísticas - Dashboard */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #F3EBC9 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 3px solid #242424;
    box-shadow: 0 8px 25px rgba(36, 36, 36, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(238, 114, 67, 0.3);
}

.stat-icon {
    background: linear-gradient(135deg, #EE7243 0%, #F4A445 100%);
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #242424;
    box-shadow: 0 4px 15px rgba(238, 114, 67, 0.3);
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 32px;
    color: #242424;
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #242424;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1em;
    color: #242424;
    opacity: 0.7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.app-card {
    background: linear-gradient(135deg, #F3EBC9 0%, #ffffff 100%);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(36, 36, 36, 0.2);
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 3px solid #242424;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #242424 0%, #EE7243 50%, #F4A445 100%);
}

.app-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(109, 70, 146, 0.4);
    border-color: #242424;
}

.app-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #242424 0%, #242424 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    box-shadow: 0 5px 20px rgba(36, 36, 36, 0.4);
    border: 3px solid #242424;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.app-name {
    font-size: 1.6em;
    font-weight: bold;
    color: #242424;
    margin-bottom: 12px;
    text-align: center;
}

.app-description {
    color: #242424;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: center;
    min-height: 50px;
}

.app-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    border-top: 2px solid #242424;
    border-bottom: 2px solid #242424;
    background: rgba(243, 235, 201, 0.3);
}

.meta-item {
    text-align: center;
}

.meta-label {
    font-size: 0.85em;
    color: #242424;
    opacity: 0.6;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-weight: bold;
    color: #242424;
    font-size: 1.1em;
}

.download-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #EE7243 0%, #F4A445 100%);
    color: #242424;
    border: 3px solid #242424;
    border-radius: 50px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(238, 114, 67, 0.3);
}

.download-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(238, 114, 67, 0.5);
    background: linear-gradient(135deg, #F4A445 0%, #FCC943 100%);
    color: #242424;
}

.download-btn:active {
    transform: scale(0.98);
}

.platform-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #242424;
    color: #F3EBC9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(36, 36, 36, 0.4);
    border: 2px solid #242424;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #F3EBC9;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(36, 36, 36, 0.5);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #F3EBC9;
    font-size: 1.6em;
    text-shadow: 2px 2px 4px rgba(36, 36, 36, 0.5);
}

footer {
    background: #242424;
    color: #F3EBC9;
    text-align: center;
    padding: 35px 0;
    margin-top: 80px;
    border-top: 4px solid #242424;
    box-shadow: 0 -5px 20px rgba(36, 36, 36, 0.3);
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
    }

    .logo {
        height: 60px;
    }

    .admin-link {
        width: 100%;
        max-width: 200px;
    }

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

    .platform-filter {
        padding: 15px;
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
        justify-content: center;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon i {
        font-size: 28px;
    }

    .stat-number {
        font-size: 2em;
    }

    .stat-label {
        font-size: 0.9em;
    }
}

/* Estilos para ícones de plataforma */
.platform-badge i {
    font-size: 1.2em;
}

.meta-label i {
    margin-right: 4px;
}

.app-icon {
    font-size: 45px;
}
