/* Estilo do card de aplicativo */
.app-card {
    max-width: 870px; /* Largura máxima conforme solicitado */
    margin: 20px auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: white;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Cabeçalho do app card */
.app-header {
    padding: 16px;
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* Logo do app */
.app-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 16px;
}

.app-title-container {
    flex-grow: 1;
}

.app-title {
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 0 0; /* Removido margin-bottom para aproximar o título da plataforma */
    color: #000000;
    line-height: 1.2;
}

.app-category {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
    line-height: 1.2; /* Adicionado para aproximar do título */
    margin-top: 1px; /* Espaçamento mínimo entre título e plataforma */
}

/* Corpo do app card */
.app-body {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.app-info-item {
    display: flex;
    align-items: center;
    margin-right: 24px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
}

.app-info-item:last-of-type {
    margin-right: 24px; /* Mantém espaço entre o último item e o botão */
}

.app-info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.star-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.download-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}

.mobile-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z'/%3E%3C/svg%3E");
}

/* Separador */
.app-separator {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0;
}

/* Botão de download */
.download-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #10b981; /* Verde brilhante como na imagem */
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    overflow: hidden;
    min-width: 180px;
    margin-left: auto; /* Empurra o botão para a direita */
}

.download-btn:hover {
    background-color: #059669; /* Verde um pouco mais escuro no hover */
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s;
}

.download-btn:hover::after {
    opacity: 1;
}

.download-btn-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Responsividade */
@media (max-width: 768px) {
    .app-card {
        margin: 15px auto;
        width: 100%;
    }
    
    .app-header {
        padding: 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin-left: 50px; /* Adicionado para centralizar a seção no modo responsivo */
    }
    
    .app-logo {
        width: 48px; /* Aumentado de 40px para 48px no mobile */
        height: 48px; /* Aumentado de 40px para 48px no mobile */
        flex-shrink: 0;
    }
    
    .app-title-container {
        margin-left: 12px;
        text-align: left;
        flex-grow: 1;
    }
    
    .app-title {
        font-size: 16px;
        text-align: left;
        margin: 0;
    }
    
    .app-category {
        text-align: left;
        margin-top: 0; /* Removido espaçamento entre título e plataforma no mobile */
    }
    
    .app-body {
        padding: 12px;
        flex-direction: column; /* Itens em coluna no mobile */
        align-items: flex-start;
    }
    
    .app-info-item {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .app-info-item:last-of-type {
        margin-right: 0;
    }
    
    .download-btn {
        width: 100%; /* Botão ocupa toda a largura no mobile */
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Ajuste específico para telas muito pequenas */
@media (max-width: 480px) {
    .app-header {
        margin-left: 20px; /* Reduzido para telas muito pequenas */
    }
}

@media (max-width: 360px) {
    .app-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin-left: 10px; /* Reduzido ainda mais para telas extremamente pequenas */
    }
    
    .app-logo {
        margin-right: 0;
    }
    
    .app-title-container {
        margin-left: 12px;
        text-align: left;
    }
}
